Skip to content

Commit 6de00ec

Browse files
committed
fix(storage): preserve original restore path errors
1 parent 391df5a commit 6de00ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ export async function restoreAccountsFromBackup(
925925
const code = (error as NodeJS.ErrnoException).code;
926926
if (code === "ENOENT") {
927927
throw new Error(
928-
`Backup file no longer exists: ${resolvedBackupPath}`,
928+
`Backup file no longer exists: ${path}`,
929929
);
930930
}
931931
throw error;

0 commit comments

Comments
 (0)