From ecac7979f2848e3259b4a6d07061f5059728cb9d Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 12 Mar 2019 22:00:29 +0700 Subject: [PATCH] Possibly improve error output --- source/net/filebot/archive/ShellExecutables.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/archive/ShellExecutables.java b/source/net/filebot/archive/ShellExecutables.java index 40be93bb..605888f6 100644 --- a/source/net/filebot/archive/ShellExecutables.java +++ b/source/net/filebot/archive/ShellExecutables.java @@ -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);