Skip to content

Commit

Permalink
show verbose error if metadata fetch does not work correctly #33
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Brandmeier committed Apr 23, 2017
1 parent 4662477 commit dbcff4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/gallery/gallery.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ export class GalleryComponent implements OnInit, OnDestroy, OnChanges {
this.render()
this.render()
},
err => console.error("Did you run the convert script from angular2-image-gallery for your images first? Original error: " + err),
err => this.providedMetadataUri ?
console.error("Provided endpoint '"+this.providedMetadataUri+"' did not serve metadata correctly or in the expected format. \n\nSee here for more information: https://github.com/BenjaminBrandmeier/angular2-image-gallery/blob/master/docs/externalDataSource.md,\n\nOriginal error: " + err) :
console.error("Did you run the convert script from angular2-image-gallery for your images first? Original error: " + err),
() => undefined)
}

Expand Down

0 comments on commit dbcff4a

Please sign in to comment.