Skip to content

Commit fbda61f

Browse files
Update mcp-core/src/main/java/io/modelcontextprotocol/util/McpServiceLoader.java
Co-authored-by: Luca Chang <131398524+LucaButBoring@users.noreply.github.com>
1 parent bedf075 commit fbda61f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp-core/src/main/java/io/modelcontextprotocol/util/McpServiceLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public synchronized R getDefault() {
3838
// Use serviceloader
3939
Optional<?> sl = serviceLoad(this.supplierType);
4040
if (sl.isEmpty()) {
41-
throw new ServiceConfigurationError("No JsonMapperSupplier available for creating McpJsonMapper");
41+
throw new ServiceConfigurationError("No %s available for creating McpJsonMapper".format(this.supplierType.getSimpleName()));
4242
}
4343
this.supplier = (S) sl.get();
4444
}

0 commit comments

Comments
 (0)