Skip to content

Commit f1916a7

Browse files
committed
fix: INT-11 adjusted cause to contains both logs and error for debug
1 parent eabd944 commit f1916a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/convert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export async function convertTo(filename: string, format: string): Promise<strin
4747

4848
if (!logsStr.includes('->')) {
4949
throw new Error(`Cannot generate PDF preview for .${path.extname(outputFilename)} file`, {
50-
cause: err || logs,
50+
cause: `Error:${err.toString()}\nLogs: ${logsStr}`,
5151
});
5252
}
5353

0 commit comments

Comments
 (0)