Skip to content

Commit

Permalink
fix(user-storage-controller): cause handling for new rpc engine version
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed May 7, 2024
1 parent 466b7e3 commit a3c76a3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ export default class UserStorageController extends BaseController<
state.isProfileSyncingEnabled = true;
});
} catch (e) {
const errorMessage = e instanceof Error ? e.message : e;
const errorMessage = e instanceof Error
? ((e as any).data?.cause?.message || e.message)
: e;
throw new Error(
`${controllerName} - failed to enable profile syncing - ${errorMessage}`,
);
Expand Down

0 comments on commit a3c76a3

Please sign in to comment.