Skip to content

Commit 2bc91b8

Browse files
committed
feat: LOAPI-19 rethrow via stderr
1 parent 96c1248 commit 2bc91b8

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
@@ -32,7 +32,7 @@ export async function convertTo(filename: string, format: string): Promise<strin
3232
logs = stdout || new Error(stderr);
3333
} catch (e) {
3434
const {stdout, stderr} = await exec(cmd);
35-
logs = stdout || new Error(stderr);
35+
logs = stdout !== '' ? stdout : new Error(stderr);
3636
}
3737

3838
await exec(`rm '/tmp/${outputFilename}'`);

0 commit comments

Comments
 (0)