Skip to content

Commit f278212

Browse files
committed
fix exception message
Signed-off-by: Lukas Jungmann <[email protected]>
1 parent 0cbe372 commit f278212

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/src/main/java/jakarta/json/spi/JsonProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ private static JsonProvider newInstance(String className) {
158158
return clazz.getConstructor().newInstance();
159159
} catch (ClassNotFoundException x) {
160160
throw new JsonException(
161-
"Provider " + DEFAULT_PROVIDER + " not found", x);
161+
"Provider " + className + " not found", x);
162162
} catch (Exception x) {
163163
throw new JsonException(
164-
"Provider " + DEFAULT_PROVIDER + " could not be instantiated: " + x,
164+
"Provider " + className + " could not be instantiated: " + x,
165165
x);
166166
}
167167
}

0 commit comments

Comments
 (0)