diff --git a/src/main/java/io/sf/carte/uparser/TokenProducer.java b/src/main/java/io/sf/carte/uparser/TokenProducer.java index 7cb0aaf..dad0757 100644 --- a/src/main/java/io/sf/carte/uparser/TokenProducer.java +++ b/src/main/java/io/sf/carte/uparser/TokenProducer.java @@ -746,7 +746,7 @@ void handleControl(int codepoint) { prevlinelength++; } else { handler.error(rootIndex, TokenProducer.ERR_UNEXPECTED_CONTROL, - "Unexpected: " + Character.toString(codepoint)); + "Unexpected codepoint: " + Integer.toHexString(codepoint)); } } } else if (codepoint == 12) { // FF @@ -768,7 +768,7 @@ void handleControl(int codepoint) { handler.separator(rootIndex, 9); } else if (codepoint < 0x80) { handler.error(rootIndex, TokenProducer.ERR_UNEXPECTED_CONTROL, - "Unexpected: " + Character.toString(codepoint)); + "Unexpected codepoint: " + Integer.toHexString(codepoint)); } else { handler.control(rootIndex, codepoint); }