mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-29 10:40:12 +00:00
feat(googleDriveSync): show error to the user if any
This commit is contained in:
parent
465d1c4b58
commit
ea2dd2eae9
1 changed files with 5 additions and 0 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue