Throw an Error object instead of a string

This commit is contained in:
Maurice de Beijer 2016-10-23 17:15:15 +02:00 committed by GitHub
parent 92c474b2c2
commit 75d04d8be7

View File

@ -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>