-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
replace logError with console.error() #592
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you replace all logError
with console.error
- also in Workbench source code, not just demos?
Also please add logError
to no-restricted-globals
in .eslintrc.yaml
so we get a warning when we use it in the future.
src/Library/demos/Account/main.js
Outdated
onClicked().catch((err)=>{ | ||
console.error(err); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why didn't you use the original syntax.
I don't have a strong opinion but I'm curious to know if there is a reason to use an anonymous function
onClicked().catch((err)=>{ | |
console.error(err); | |
}); | |
onClicked().catch(console.error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No particular reason but i just went with it, I've updated it though
I can't access |
* library: Add Rust demo Map * remove unused variable * Ensure Shumate type in Vala * Add `gtk::init` * Slightly simplify println --------- Co-authored-by: Julian Hofer <[email protected]>
Co-authored-by: Sonny Piers <[email protected]>
Yes, you should make changes to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Closes #531