diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java index a51e937cca7..f1a26ba9a72 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java @@ -639,12 +639,12 @@ public abstract class AbstractGoCodegen extends DefaultCodegen implements Codege Process p = Runtime.getRuntime().exec(command); p.waitFor(); if (p.exitValue() != 0) { - LOGGER.error("Error running the command ({}): {}", command, p.exitValue()); + LOGGER.error("Error running the command ({}). Exit code: {}", command, p.exitValue()); } + LOGGER.info("Successfully executed: " + command); } catch (Exception e) { - LOGGER.error("Error running the command ({}): {}", command, e.getMessage()); + LOGGER.error("Error running the command ({}). Exception: {}", command, e.getMessage()); } - LOGGER.info("Successfully executed: " + command); } } } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartClientCodegen.java index 8d80c21f5d4..f142d21f45e 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartClientCodegen.java @@ -539,12 +539,12 @@ public class DartClientCodegen extends DefaultCodegen implements CodegenConfig { Process p = Runtime.getRuntime().exec(command); p.waitFor(); if (p.exitValue() != 0) { - LOGGER.error("Error running the command ({}): {}", command, p.exitValue()); + LOGGER.error("Error running the command ({}). Exit code: {}", command, p.exitValue()); } + LOGGER.info("Successfully executed: " + command); } catch (Exception e) { - LOGGER.error("Error running the command ({}): {}", command, e.getMessage()); + LOGGER.error("Error running the command ({}). Exception: {}", command, e.getMessage()); } - LOGGER.info("Successfully executed: " + command); } } } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ElmClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ElmClientCodegen.java index a4d631ab9e2..6e26af25450 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ElmClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ElmClientCodegen.java @@ -657,12 +657,12 @@ public class ElmClientCodegen extends DefaultCodegen implements CodegenConfig { Process p = Runtime.getRuntime().exec(command); p.waitFor(); if (p.exitValue() != 0) { - LOGGER.error("Error running the command ({}): {}", command, p.exitValue()); + LOGGER.error("Error running the command ({}). Exit code: {}", command, p.exitValue()); } + LOGGER.info("Successfully executed: " + command); } catch (Exception e) { - LOGGER.error("Error running the command ({}): {}", command, e.getMessage()); + LOGGER.error("Error running the command ({}). Exception: {}", command, e.getMessage()); } - LOGGER.info("Successfully executed: " + command); } } } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptClientCodegen.java index 2bbb3596124..8a2dab859bb 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptClientCodegen.java @@ -1179,12 +1179,12 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo Process p = Runtime.getRuntime().exec(command); p.waitFor(); if (p.exitValue() != 0) { - LOGGER.error("Error running the command ({}): {}", command, p.exitValue()); + LOGGER.error("Error running the command ({}). Exit code: {}", command, p.exitValue()); } + LOGGER.info("Successfully executed: " + command); } catch (Exception e) { - LOGGER.error("Error running the command ({}): {}", command, e.getMessage()); + LOGGER.error("Error running the command ({}). Exception: {}", command, e.getMessage()); } - LOGGER.info("Successfully executed: " + command); } } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PerlClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PerlClientCodegen.java index 2def779b8c0..5a2397684fc 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PerlClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PerlClientCodegen.java @@ -585,12 +585,12 @@ public class PerlClientCodegen extends DefaultCodegen implements CodegenConfig { Process p = Runtime.getRuntime().exec(command); p.waitFor(); if (p.exitValue() != 0) { - LOGGER.error("Error running the command ({}): {}", command, p.exitValue()); + LOGGER.error("Error running the command ({}). Exit code: {}", command, p.exitValue()); } + LOGGER.info("Successfully executed: " + command); } catch (Exception e) { - LOGGER.error("Error running the command ({}): {}", command, e.getMessage()); + LOGGER.error("Error running the command ({}). Exception: {}", command, e.getMessage()); } - LOGGER.info("Successfully executed: " + command); } } }