mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
Change warning to error
This commit is contained in:
parent
ba2571a446
commit
da019894be
|
@ -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">
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user