Skip to content

Commit

Permalink
openapi: better error message on failed parsing #806
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Mar 16, 2024
1 parent aa97395 commit ec5dde6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/theme.js
Expand Up @@ -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');
}
}
}
Expand Down

0 comments on commit ec5dde6

Please sign in to comment.