File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Plugins/OpenAPIGeneratorCommand
Sources/swift-openapi-generator Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,11 @@ extension SwiftOpenAPIGeneratorPlugin: CommandPlugin {
82
82
hadASuccessfulRun = true
83
83
} catch let error as PluginError {
84
84
if error. isMisconfigurationError {
85
- print ( " - OpenAPI code generation failed with error . " )
85
+ print ( " - Stopping because target isn't configured for OpenAPI code generation . " )
86
86
throw error
87
87
} else {
88
- print ( " - Stopping because target isn't configured for OpenAPI code generation. " )
88
+ print ( " - OpenAPI code generation failed with error. " )
89
+ throw error
89
90
}
90
91
}
91
92
}
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ extension _GenerateOptions {
52
52
}
53
53
let ( diagnostics, finalizeDiagnostics) = preparedDiagnosticsCollector ( outputPath: diagnosticsOutputPath)
54
54
let doc = self . docPath
55
- print (
55
+ FileHandle . standardError . write (
56
56
"""
57
57
Swift OpenAPI Generator is running with the following configuration:
58
58
- OpenAPI document path: \( doc. path)
You can’t perform that action at this time.
0 commit comments