mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-15 22:05:00 -05:00
Possibly improve error output
This commit is contained in:
parent
6714b3ff7d
commit
ecac7979f2
@ -72,7 +72,7 @@ public class ShellExecutables implements ArchiveExtractor {
|
|||||||
if (returnCode == 0) {
|
if (returnCode == 0) {
|
||||||
return output;
|
return output;
|
||||||
} else {
|
} 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) {
|
} catch (InterruptedException e) {
|
||||||
throw new IOException(String.format("%s timed out", asList(command)), e);
|
throw new IOException(String.format("%s timed out", asList(command)), e);
|
||||||
|
Loading…
Reference in New Issue
Block a user