Skip to content

Commit

Permalink
feat(front): change log catch any
Browse files Browse the repository at this point in the history
  • Loading branch information
SARDONYX-sard committed Sep 19, 2024
1 parent 98d2730 commit cef2f5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"evenBetterToml.formatter.alignComments": true,
// "rust-analyzer.checkOnSave": false,
// "editor.formatOnSave": false
// "editor.formatOnSave": false,
"files.exclude": {
".swc": true,
"**/node_modules": true // optional
Expand Down
8 changes: 2 additions & 6 deletions gui/frontend/src/components/buttons/log_btn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ export const LogFileButton = () => {
try {
await openLogFile();
} catch (error) {
if (error instanceof Error) {
notify.error(error.message);
}
notify.error(`${error}`);
}
};

Expand All @@ -54,9 +52,7 @@ export const LogDirButton = () => {
try {
await openLogDir();
} catch (error) {
if (error instanceof Error) {
notify.error(error.message);
}
notify.error(`${error}`);
}
};

Expand Down

0 comments on commit cef2f5c

Please sign in to comment.