Skip to content

Commit eaf436f

Browse files
Fix final layer of error handling in command plugin
1 parent 3f881d6 commit eaf436f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Plugins/OpenAPIGeneratorCommand/plugin.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,11 @@ extension SwiftOpenAPIGeneratorPlugin: CommandPlugin {
8282
hadASuccessfulRun = true
8383
} catch let error as PluginError {
8484
if error.isMisconfigurationError {
85-
print("- OpenAPI code generation failed with error.")
85+
print("- Stopping because target isn't configured for OpenAPI code generation.")
8686
throw error
8787
} else {
88-
print("- Stopping because target isn't configured for OpenAPI code generation.")
88+
print("- OpenAPI code generation failed with error.")
89+
throw error
8990
}
9091
}
9192
}

0 commit comments

Comments
 (0)