From 0d243dbc2656c2c43cace7782add96b7b403f039 Mon Sep 17 00:00:00 2001 From: Lutz Neugebauer Date: Fri, 5 Jan 2024 07:52:51 +0100 Subject: [PATCH] Update src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java Co-authored-by: Jesse Glick --- .../org/jenkinsci/plugins/durabletask/BourneShellScript.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java b/src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java index 9e8165ee..1eb947c7 100644 --- a/src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java +++ b/src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java @@ -390,8 +390,7 @@ public Integer invoke(File f, VirtualChannel channel) throws IOException, Interr } } } catch (NumberFormatException x) { - LOGGER.log(Level.WARNING, "corrupted content in {0} when reading with charset {1}: {2}", new Object[] {f, charset, x}); - throw new IOException("corrupted content in " + f + ": " + x, x); + throw new IOException("corrupted content in " + f + " using " + charset + ": " + x, x); } } return null;