Skip to content

Commit c4122e7

Browse files
authored
fixes an error message containing a nil err object (oapi-codegen#1048)
Signed-off-by: Michal Wasilewski <mwasilewski@gmx.com>
1 parent 3ecfa65 commit c4122e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/oapi-codegen/oapi-codegen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func main() {
155155
t := true
156156
oldConfigStyle = &t
157157
} else if oldErr != nil && newErr != nil {
158-
errExit("error parsing configuration style as old version or new version: %v\n", err)
158+
errExit("error parsing configuration style as old version or new version\n\nerror when parsing using old config version:\n%v\n\nerror when parsing using new config version:\n%v\n", oldErr, newErr)
159159
}
160160
// Else we fall through, and we still don't know, so we need to infer it from flags.
161161
}

0 commit comments

Comments
 (0)