1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-22 15:58:52 -05:00

Possibly improve error output

This commit is contained in:
Reinhard Pointner 2019-03-12 22:00:29 +07:00
parent 6714b3ff7d
commit ecac7979f2

View File

@ -72,7 +72,7 @@ public class ShellExecutables implements ArchiveExtractor {
if (returnCode == 0) {
return output;
} else {
throw new IOException(String.format("%s failed with exit code %d: %s", asList(command), returnCode, SPACE.matcher(output).replaceAll(" ").trim()));
throw new IOException(String.format("%s failed with exit code %d: %s", asList(command), returnCode, output.trim()));
}
} catch (InterruptedException e) {
throw new IOException(String.format("%s timed out", asList(command)), e);