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'); } } }