mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
add error message
This commit is contained in:
parent
4e2be888dc
commit
1fc5be3296
|
@ -95,7 +95,6 @@ export default class Redoc extends BaseComponent {
|
|||
Redoc.appRef = appRef;
|
||||
redocEvents.bootstrapped.next();
|
||||
console.log('ReDoc bootstrapped!');
|
||||
//resolve();
|
||||
},
|
||||
error => {
|
||||
console.log(error);
|
||||
|
|
|
@ -158,8 +158,7 @@ export default class SchemaManager {
|
|||
|
||||
findDerivedDefinitions(defPointer) {
|
||||
let definition = this.byPointer(defPointer);
|
||||
|
||||
// FIXME maybe not throw?
|
||||
if (!definition) throw new Error(`Can't load schema at ${defPointer}`);
|
||||
if (!definition.discriminator) return [];
|
||||
|
||||
let globalDefs = this._schema.definitions || {};
|
||||
|
|
Loading…
Reference in New Issue
Block a user