Change warning to error

This commit is contained in:
Roman Hotsiy 2016-01-09 17:16:43 +02:00
parent ba2571a446
commit da019894be
2 changed files with 1 additions and 5 deletions

View File

@ -1,4 +1,3 @@
<small *ngIf="errorMessage">{{errorMessage}}</small>
<span *ngIf="isTrivial" class="param-type param-type-trivial" [ngClass]="type">{{_displayType}}</span>
<div *ngIf="!isTrivial" class="params-wrap" [ngClass]="{'params-array': isArray}">
<div *ngFor="#prop of data.properties" class="param-wrap">

View File

@ -22,10 +22,7 @@ export default class JsonSchema extends BaseComponent {
this.data.properties = [];
if (!this.componentSchema) {
// TODO
this.errorMessage = 'Can\'t load component schema';
console.warn(`${this.errorMessage}: ${this.pointer}`);
return;
throw new Error(`Can't load component schema at ${this.pointer}`);
}
this.dereference();