fix: Propagate exception in YUML plugin

This commit is contained in:
1ambda 2016-11-04 15:28:44 +09:00
parent c656d08c4f
commit 1b7787f387

View file

@ -109,7 +109,7 @@ public class PegdownYumlPlugin extends Parser implements BlockPluginParser {
try {
encodedBody = URLEncoder.encode(inlined.toString(), "UTF-8");
} catch (UnsupportedEncodingException e) {
new RuntimeException("Failed to encode YUML markdown body");
new RuntimeException("Failed to encode YUML markdown body", e);
}
StringBuilder mergedStyle = new StringBuilder();