Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
butter-studio
Commits
ec1fb3b9
Commit
ec1fb3b9
authored
Jul 14, 2021
by
Kim, Subin
Browse files
alert errorMsg 띄우기
parent
ad4f6a49
Changes
1
Show whitespace changes
Inline
Side-by-side
client/src/utils/catchErrors.js
View file @
ec1fb3b9
...
@@ -11,6 +11,7 @@ const catchErrors = (error, displayError) => {
...
@@ -11,6 +11,7 @@ const catchErrors = (error, displayError) => {
console
.
log
(
'
Error message:
'
,
errorMsg
)
console
.
log
(
'
Error message:
'
,
errorMsg
)
}
}
displayError
(
errorMsg
)
displayError
(
errorMsg
)
alert
(
errorMsg
)
}
}
export
default
catchErrors
export
default
catchErrors
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment