Skip to content

Commit

Permalink
refactor(index): do not return empty error message on rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Feb 20, 2023
1 parent a19a76e commit 88c92c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class UnRTF {
if (stdOut !== "") {
resolve(stdOut.trim());
} else {
reject(new Error(stdErr.trim()));
reject(new Error(stdErr ? stdErr.trim() : undefined));
}
});
});
Expand Down

0 comments on commit 88c92c5

Please sign in to comment.