Skip to content

Commit

Permalink
ignore warnings when extracting binary payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Mar 30, 2020
1 parent cf10723 commit 7321d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BinaryExtractionTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class BinaryExtractionTask extends ExifToolTask<void> {
}

parse(stdout: string, err?: Error): void {
if (err != null) throw err
if (err != null && err.message.match(/^warning: /i) == null) throw err
if (null == /1 output files? created/.exec(stdout)) {
throw new Error(
notBlank(stdout) ? stdout : "Missing expected status message"
Expand Down

0 comments on commit 7321d6f

Please sign in to comment.