From 2077229cd2f8b3f561ea7c115ae024415ff27fcd Mon Sep 17 00:00:00 2001 From: Leonardo Taglialegne Date: Fri, 9 Aug 2024 20:14:02 +0200 Subject: [PATCH] If the input is not an old swagger file we should show the original parsing error --- src/Cli.elm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cli.elm b/src/Cli.elm index 1f18006..b925b7b 100644 --- a/src/Cli.elm +++ b/src/Cli.elm @@ -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 _ ->