-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Updated to latest version of ESlint ghost plugin #25713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -75,7 +75,7 @@ export const FormEditor: React.FC<FormEditorProps> = ({comment, submit, progress | |||||||||||||||||||
| await submit({ | ||||||||||||||||||||
| html: editor.getHTML() | ||||||||||||||||||||
| }); | ||||||||||||||||||||
| } catch (e) { | ||||||||||||||||||||
| } catch { | ||||||||||||||||||||
| setProgress('error'); | ||||||||||||||||||||
| return; | ||||||||||||||||||||
| } | ||||||||||||||||||||
|
Comment on lines
+78
to
81
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add error logging for observability. The bare catch block swallows the error without logging, making it impossible to debug form submission failures in production. While the UI correctly shows an error state, developers need visibility into why submissions fail (network issues, validation errors, server errors, etc.). Consider adding at least console error logging: - } catch {
+ } catch (error) {
+ console.error('Form submission failed:', error);
setProgress('error');
return;
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||
|
|
||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.