-
Notifications
You must be signed in to change notification settings - Fork 1
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
hide error symbol from being printed #168
Conversation
Is there is a specific reason to this change? |
@@ -1,4 +1,4 @@ | |||
import { isError } from '../utils/typeUtils' | |||
import { isNativeError } from 'node:util/types' |
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 this change? this method was deprecated AFAIR
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.
It's not depreciated: https://nodejs.org/api/util.html#utiltypesisnativeerrorvalue
I think that it's better to use std lib solutions
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.
ok, then it makes sense
This symbol was meant to be internal, used for instance check only. It doesn't provide any valuable info. |
After a discussion, we decided to leave printing it as before. |
49da2a9
to
f50a6c0
Compare
Not sure if related, but I am getting the following on my PR:
https://github.com/lokalise/autopilot/actions/runs/11363730214/job/31608342987?pr=4496 |
Using
Should resolve this problem as it would make the SYMBOL property invisible to type checking as well. |
f50a6c0
to
0e035b5
Compare
0e035b5
to
49957db
Compare
Changes
This PR prevents the error symbol from being printed.
console.log output of the previous implementation:
console.log output of the new implementation
Checklist
major
,minor
,patch
orskip-release