Skip to content

Commit 060fd72

Browse files
committed
Enhance error handling in fetchBuildData and update error message for report generation
1 parent eb2eaf5 commit 060fd72

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export default function Home() {
3434
setBuildData(cleanData);
3535
} catch (err) {
3636
console.error(err);
37+
throw err
3738
}
3839
}
3940

@@ -74,7 +75,7 @@ export default function Home() {
7475
toast.promise(fetchBuildData(token, buildUrl), {
7576
pending: "Generating Report...",
7677
success: "Report Generated!",
77-
error: "Failed to generate report."
78+
error: "Failed to generate report. Please ensure you are using Read Only Token"
7879
});
7980
};
8081

0 commit comments

Comments
 (0)