Skip to content

Commit 3c6255b

Browse files
committed
chore: print getClass() in CodegenException
1 parent 2c4a800 commit 3c6255b

File tree

1 file changed

+2
-2
lines changed
  • smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen

1 file changed

+2
-2
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/CodegenUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ static List<String> getFunctionParametersList(Map<String, Object> paramsMap) {
162162
functionParametersList.add(String.format("%s: '%s'", key, value));
163163
} else {
164164
// Future support for param type should be added in else if.
165-
throw new CodegenException("plugin function parameters not supported for type"
166-
+ value.toString());
165+
throw new CodegenException("Plugin function parameters not supported for type "
166+
+ value.getClass());
167167
}
168168
}
169169
}

0 commit comments

Comments
 (0)