From ec5dde64429f0673aa6ebbe8ef71a9d35b1a4efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 17 Mar 2024 00:55:37 +0100 Subject: [PATCH] openapi: better error message on failed parsing #806 --- static/js/theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/theme.js b/static/js/theme.js index b1b3ec8255..e576e5b4ee 100644 --- a/static/js/theme.js +++ b/static/js/theme.js @@ -479,7 +479,7 @@ function initOpenapi( update, attrs ){ try{ Object.assign( options, { spec: jsyaml.load( oc.dataset.openapiSpec ) }); } catch( err ){ - console.log( err ); + console.error( 'OpenAPI: file "' + oc.dataset.openapiUrl + '" could not be parsed as JSON or YAML'); } } }