Skip to content

Commit

Permalink
If the input is not an old swagger file we should show the original p…
Browse files Browse the repository at this point in the history
…arsing error
  • Loading branch information
miniBill committed Aug 9, 2024
1 parent b966541 commit 2077229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cli.elm
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ decodeOpenApiSpecOrFail config cliOptions value =

else
case Json.Decode.decodeValue swaggerFieldDecoder value of
Err error ->
jsonErrorToFatalError error
Err _ ->
jsonErrorToFatalError decodeError
|> BackendTask.fail

Ok _ ->
Expand Down

0 comments on commit 2077229

Please sign in to comment.