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 96c1248 commit 2bc91b8Copy full SHA for 2bc91b8
src/convert.ts
@@ -32,7 +32,7 @@ export async function convertTo(filename: string, format: string): Promise<strin
32
logs = stdout || new Error(stderr);
33
} catch (e) {
34
const {stdout, stderr} = await exec(cmd);
35
- logs = stdout || new Error(stderr);
+ logs = stdout !== '' ? stdout : new Error(stderr);
36
}
37
38
await exec(`rm '/tmp/${outputFilename}'`);
0 commit comments