From 2c22a017795daafd72aa92989654c1b66b65907f Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sat, 27 Aug 2022 10:14:10 +0800 Subject: [PATCH] fix return in r (#13294) --- modules/openapi-generator/src/main/resources/r/api.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/r/api.mustache b/modules/openapi-generator/src/main/resources/r/api.mustache index bf0551def51..6fc50108c91 100644 --- a/modules/openapi-generator/src/main/resources/r/api.mustache +++ b/modules/openapi-generator/src/main/resources/r/api.mustache @@ -566,7 +566,7 @@ if (is.null(local_var_resp$response) || local_var_resp$response == "") { local_var_resp$response <- "API server error" } - return local_var_resp + local_var_resp {{/returnExceptionOnFailure}} } }{{^-last}},{{/-last}}