fix(ui): add error log to homepage and marketplace
We didnt log errors to the console. Instead we just showed a error message to the user.
Now a console.error  is executed before showing the error message
@@ -152,7 +152,9 @@ export class ApiCardListComponent implements OnInit, OnDestroy {
this.loadingSpinnerService.stopWaiting();
this.ready = true;
},
- () => {
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
+ (err: any) => {
+ console.error(err);
this.error = true;
this.loadingSpinnerService.stopWaiting();
}
@@ -177,7 +179,9 @@ export class ApiCardListComponent implements OnInit, OnDestroy {
this.loadingSpinnerService.stopWaiting();
this.ready = true;
},
- () => {
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
+ (err: any) => {
+ console.error(err);
this.error = true;
this.loadingSpinnerService.stopWaiting();
}
