mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
openapi: better error message on failed parsing #806
This commit is contained in:
parent
aa97395407
commit
ec5dde6442
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue