Skip to content

Commit

Permalink
fix: log command output when conversion finished not found
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
  • Loading branch information
kesselb committed Nov 14, 2024
1 parent ce7c0ec commit 92bf60c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/ConversionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function convert(string $filePath): string {
}

if (str_contains($stdout, 'Conversion finished') === false) {
throw new ConversionException('Conversion did not finish');
throw new ConversionException('The command output does not contain the phrase "Conversion finished". Output: ' . $stdout);
}

$status = proc_close($process);
Expand Down

0 comments on commit 92bf60c

Please sign in to comment.