1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

fix errors

This commit is contained in:
Kyle Spearrin
2018-05-15 11:08:55 -04:00
parent eb83569f2f
commit 83e91b70ff
6 changed files with 13 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ export class CreateCommand {
await this.cipherService.saveWithServer(cipher);
return Response.success();
} catch (e) {
return Response.error(e.toString());
return Response.error(e);
}
}
@@ -46,7 +46,7 @@ export class CreateCommand {
await this.folderService.saveWithServer(folder);
return Response.success();
} catch (e) {
return Response.error(e.toString());
return Response.error(e);
}
}
}

View File

@@ -29,7 +29,7 @@ export class DeleteCommand {
await this.cipherService.deleteWithServer(id);
return Response.success();
} catch (e) {
return Response.error(e.toString());
return Response.error(e);
}
}
@@ -43,7 +43,7 @@ export class DeleteCommand {
await this.folderService.deleteWithServer(id);
return Response.success();
} catch (e) {
return Response.error(e.toString());
return Response.error(e);
}
}
}

View File

@@ -15,7 +15,7 @@ export class LoginCommand {
// TODO: 2FA
return Response.success();
} catch (e) {
return Response.success(e.toString());
return Response.error(e);
}
}
}

View File

@@ -12,7 +12,7 @@ export class SyncCommand {
const result = await this.syncService.fullSync(cmd.force || false);
return Response.success();
} catch (e) {
return Response.success(e.toString());
return Response.error(e);
}
}
}