feat(googleDriveSync): show error to the user if any

This commit is contained in:
Johannes Millan 2019-02-14 15:07:50 +01:00
parent 465d1c4b58
commit ea2dd2eae9

View file

@ -364,6 +364,11 @@ export class GoogleDriveSyncEffects {
private _handleError(err): Observable<any> {
console.warn('Google Drive Sync Error:', err);
const errTxt = (typeof err === 'string' && err) || (err.toString && err.toString()) || 'Unknown';
this._snackService.open({
type: 'ERROR',
message: 'Google Drive Sync Error: ' + errTxt
});
return of(new LoadFromGoogleDriveCancel());
}