From 3b2fb7d7ca006710de231d79a70d4af91ae27fa5 Mon Sep 17 00:00:00 2001 From: Adam Murdoch Date: Mon, 13 Aug 2012 11:40:01 +1000 Subject: [PATCH] Don't throw exception away. --- .../net/rubygrapefruit/platform/internal/DefaultPosixFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/rubygrapefruit/platform/internal/DefaultPosixFile.java b/src/main/java/net/rubygrapefruit/platform/internal/DefaultPosixFile.java index 3582924..fceeaf9 100755 --- a/src/main/java/net/rubygrapefruit/platform/internal/DefaultPosixFile.java +++ b/src/main/java/net/rubygrapefruit/platform/internal/DefaultPosixFile.java @@ -47,7 +47,7 @@ public class DefaultPosixFile implements PosixFile { try { encodedName = file.getPath().getBytes(characterEncoding); } catch (UnsupportedEncodingException e) { - throw new NativeException(String.format("Could not encode path for file '%s' using encoding %s.", file.getName(), characterEncoding)); + throw new NativeException(String.format("Could not encode path for file '%s' using encoding %s.", file.getName(), characterEncoding), e); } byte[] buffer = new byte[encodedName.length + 1]; System.arraycopy(encodedName, 0, buffer, 0, encodedName.length);