forked from loafle/openapi-generator-original
Throw an Error object instead of a string
This commit is contained in:
parent
92c474b2c2
commit
75d04d8be7
@ -58,7 +58,7 @@
|
||||
<#allParams><#required>
|
||||
// verify the required parameter '<paramName>' is set
|
||||
if (<paramName> == undefined || <paramName> == null) {
|
||||
throw "Missing the required parameter '<paramName>' when calling <operationId>";
|
||||
throw new Error("Missing the required parameter '<paramName>' when calling <operationId>");
|
||||
}
|
||||
</required></allParams>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user