add error message

This commit is contained in:
Roman Hotsiy 2016-01-15 22:42:55 +02:00
parent 4e2be888dc
commit 1fc5be3296
2 changed files with 1 additions and 3 deletions

View File

@ -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);

View File

@ -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 || {};