Skip to content
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

Merged
merged 13 commits into from
Sep 17, 2023
Merged

replace logError with console.error() #592

merged 13 commits into from
Sep 17, 2023

Conversation

SoNiC-HeRE
Copy link
Contributor

Closes #531

@SoNiC-HeRE SoNiC-HeRE marked this pull request as draft September 13, 2023 21:32
Copy link
Contributor

@sonnyp sonnyp left a 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.

Comment on lines 50 to 52
onClicked().catch((err)=>{
console.error(err);
});
Copy link
Contributor

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

Suggested change
onClicked().catch((err)=>{
console.error(err);
});
onClicked().catch(console.error);

Copy link
Contributor Author

@SoNiC-HeRE SoNiC-HeRE Sep 16, 2023

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

@sonnyp sonnyp marked this pull request as ready for review September 16, 2023 16:14
@SoNiC-HeRE
Copy link
Contributor Author

I can't access /troll files and make changes to it. Is it because it's from another repo?

M-Sabrina and others added 4 commits September 17, 2023 15:53
* 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]>
@sonnyp
Copy link
Contributor

sonnyp commented Sep 17, 2023

Yes, you should make changes to troll from the Workbench repo - it is a git submodule pointing to https://github.com/sonnyp/troll

@sonnyp sonnyp removed the request for review from Hofer-Julian September 17, 2023 14:33
Copy link
Contributor

@sonnyp sonnyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sonnyp sonnyp merged commit 51d6aa0 into main Sep 17, 2023
1 check passed
@sonnyp sonnyp deleted the sonic/console branch September 17, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

replace logError with console.error
5 participants