Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix exception message
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed May 19, 2022
commit ffbd680c15105a2c2cf1de24b81bb0b756ee86d6
4 changes: 2 additions & 2 deletions api/src/main/java/jakarta/json/spi/JsonProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ private static JsonProvider newInstance(String className) {
return clazz.getConstructor().newInstance();
} catch (ClassNotFoundException x) {
throw new JsonException(
"Provider " + DEFAULT_PROVIDER + " not found", x);
"Provider " + className + " not found", x);
} catch (Exception x) {
throw new JsonException(
"Provider " + DEFAULT_PROVIDER + " could not be instantiated: " + x,
"Provider " + className + " could not be instantiated: " + x,
x);
}
}
Expand Down