Skip to content

Commit 006ac38

Browse files
committed
Only throw error, changed error message
1 parent 5e6faca commit 006ac38

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib/utils/pack.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@ export async function pack(srcDir: string, dstDir: string) {
5050

5151
const lastLine = stdout.trim().split("\n").at(-1)
5252
if (!lastLine) {
53-
log.error(
54-
`Failed to parse last line from stdout: ${stdout.trim()}`
55-
);
56-
throw new Error("Unable to find fileName from pack output");
53+
throw new Error(`Failed to parse last line from stdout: ${stdout.trim()}`);
5754
}
5855
const fileName = path.basename(lastLine);
5956

0 commit comments

Comments
 (0)