Skip to content

Commit

Permalink
fix exception message
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Jul 15, 2022
1 parent 0cbe372 commit f278212
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/main/java/jakarta/json/spi/JsonProvider.java
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

0 comments on commit f278212

Please sign in to comment.