We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eabd944 commit f1916a7Copy full SHA for f1916a7
src/convert.ts
@@ -47,7 +47,7 @@ export async function convertTo(filename: string, format: string): Promise<strin
47
48
if (!logsStr.includes('->')) {
49
throw new Error(`Cannot generate PDF preview for .${path.extname(outputFilename)} file`, {
50
- cause: err || logs,
+ cause: `Error:${err.toString()}\nLogs: ${logsStr}`,
51
});
52
}
53
0 commit comments