Skip to content

Commit 078f664

Browse files
committed
graphite: error message
1 parent 72a4c6d commit 078f664

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/website/app/components/auth/LoginWithToken.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ export const LoginWithToken = () => {
5454
router.replace(url);
5555
}
5656
} catch (error) {
57-
setError("error");
57+
setError(
58+
error instanceof Error ? error.message : "Unknown error occurred",
59+
);
5860
} finally {
5961
setDone(true);
6062
}

0 commit comments

Comments
 (0)