From 75d04d8be757468d6ef0c378076fb59a3e34cc23 Mon Sep 17 00:00:00 2001 From: Maurice de Beijer Date: Sun, 23 Oct 2016 17:15:15 +0200 Subject: [PATCH] Throw an Error object instead of a string --- .../swagger-codegen/src/main/resources/Javascript/api.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/swagger-codegen/src/main/resources/Javascript/api.mustache b/modules/swagger-codegen/src/main/resources/Javascript/api.mustache index 8d515b16b5a..e3990ed910a 100644 --- a/modules/swagger-codegen/src/main/resources/Javascript/api.mustache +++ b/modules/swagger-codegen/src/main/resources/Javascript/api.mustache @@ -58,7 +58,7 @@ <#allParams><#required> // verify the required parameter '' is set if ( == undefined || == null) { - throw "Missing the required parameter '' when calling "; + throw new Error("Missing the required parameter '' when calling "); }