1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-23 03:33:54 +00:00

Fix reporting of server-side errors in "bw sync". (#6855)

Co-authored-by: SmithThe4th <gsmith@bitwarden.com>
This commit is contained in:
Tomi Belan
2024-12-12 19:01:03 +01:00
committed by GitHub
parent 46e2e0233b
commit 7a5f3b2dd4
3 changed files with 28 additions and 12 deletions

View File

@@ -21,7 +21,9 @@ export class SyncCommand {
const res = new MessageResponse("Syncing complete.", null);
return Response.success(res);
} catch (e) {
return Response.error("Syncing failed: " + e.toString());
const response = Response.error(e);
response.message = "Syncing failed: " + response.message;
return response;
}
}