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

util: display a present-but-undefined error cause #41247

Merged

Conversation

ljharb
Copy link
Member

@ljharb ljharb commented Dec 19, 2021

See #41097 (comment)

It was a very explicit and intentional decision to differentiate an undefined cause from an absent cause, so let's display it.

cc @nodejs/util

@ljharb ljharb added the util Issues and PRs related to the built-in util module. label Dec 19, 2021
@ljharb ljharb requested a review from BridgeAR December 19, 2021 23:34
@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Dec 19, 2021
@ljharb ljharb requested a review from aduh95 December 19, 2021 23:37
@ljharb ljharb force-pushed the util-inspect-undefined-cause branch from 29c7b48 to eb46007 Compare December 19, 2021 23:43
Copy link
Contributor

@aduh95 aduh95 left a comment

Choose a reason for hiding this comment

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

Firefox output is:

Error: undefined cause
    <anonymous> debugger eval code:1
Caused by: undefined

@aduh95 aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Dec 20, 2021
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 20, 2021
@nodejs-github-bot

This comment has been minimized.

@ljharb ljharb force-pushed the util-inspect-undefined-cause branch from eb46007 to d318e47 Compare December 20, 2021 05:48
@nodejs-github-bot
Copy link
Collaborator

@ljharb
Copy link
Member Author

ljharb commented Dec 20, 2021

What's next to land this? :-)

@targos targos added the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 20, 2021
@nodejs-github-bot nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Dec 20, 2021
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/41247
✔  Done loading data for nodejs/node/pull/41247
----------------------------------- PR info ------------------------------------
Title      util: display a present-but-undefined error cause (#41247)
   ⚠  Could not retrieve the email or name of the PR author's from user's GitHub profile!
Branch     ljharb:util-inspect-undefined-cause -> nodejs:master
Labels     util, author ready, needs-ci
Commits    1
 - util: display a present-but-undefined error cause
Committers 1
 - Jordan Harband 
PR-URL: https://github.com/nodejs/node/pull/41247
Reviewed-By: Antoine du Hamel 
Reviewed-By: Colin Ihrig 
Reviewed-By: Michaël Zasso 
Reviewed-By: Ruben Bridgewater 
Reviewed-By: Luigi Pinca 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/41247
Reviewed-By: Antoine du Hamel 
Reviewed-By: Colin Ihrig 
Reviewed-By: Michaël Zasso 
Reviewed-By: Ruben Bridgewater 
Reviewed-By: Luigi Pinca 
--------------------------------------------------------------------------------
   ℹ  This PR was created on Sun, 19 Dec 2021 23:34:01 GMT
   ✔  Approvals: 5
   ✔  - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/41247#pullrequestreview-835919665
   ✔  - Colin Ihrig (@cjihrig) (TSC): https://github.com/nodejs/node/pull/41247#pullrequestreview-835922609
   ✔  - Michaël Zasso (@targos) (TSC): https://github.com/nodejs/node/pull/41247#pullrequestreview-836065279
   ✔  - Ruben Bridgewater (@BridgeAR) (TSC): https://github.com/nodejs/node/pull/41247#pullrequestreview-836157757
   ✔  - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/41247#pullrequestreview-836782076
   ✖  This PR needs to wait 26 more hours to land
   ✔  Last GitHub Actions successful
   ℹ  Last Full PR CI on 2021-12-20T08:37:03Z: https://ci.nodejs.org/job/node-test-pull-request/41555/
- Querying data for job/node-test-pull-request/41555/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/1603912136

@targos
Copy link
Member

targos commented Dec 20, 2021

@ljharb

✖ This PR needs to wait 26 more hours to land

@ljharb
Copy link
Member Author

ljharb commented Dec 20, 2021

@targos aha, thanks :-) i'll wait out the time then

@jasnell jasnell removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Dec 21, 2021
@ljharb
Copy link
Member Author

ljharb commented Dec 21, 2021

It's now been 26 hours since that failure; would someone mind kicking off the commit queue? 🙏

@aduh95
Copy link
Contributor

aduh95 commented Dec 21, 2021

It's now been 26 hours since that failure; would someone mind kicking off the commit queue? 🙏

✖ This PR needs to wait 21 more minutes to land

@aduh95 aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 21, 2021
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 21, 2021
@nodejs-github-bot nodejs-github-bot merged commit 8d1f13b into nodejs:master Dec 21, 2021
@nodejs-github-bot
Copy link
Collaborator

Landed in 8d1f13b

@ljharb ljharb deleted the util-inspect-undefined-cause branch December 22, 2021 05:17
@ljharb
Copy link
Member Author

ljharb commented Dec 22, 2021

Thanks everyone!

@ljharb
Copy link
Member Author

ljharb commented Dec 22, 2021

Can/should this get the backport requested label for node 17?

@BridgeAR
Copy link
Member

@ljharb adding that label is an indicator that there's need for a manual backport and it won't be pulled in automatically anymore. As a patch, it is likely to be pulled into the next releases that contain the basic implementation.

targos pushed a commit that referenced this pull request Jan 14, 2022
See #41097 (comment)

PR-URL: #41247
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams pushed a commit that referenced this pull request Jan 31, 2022
See #41097 (comment)

PR-URL: #41247
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Linkgoron pushed a commit to Linkgoron/node that referenced this pull request Jan 31, 2022
See nodejs#41097 (comment)

PR-URL: nodejs#41247
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams pushed a commit that referenced this pull request Feb 1, 2022
See #41097 (comment)

PR-URL: #41247
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
@danielleadams danielleadams mentioned this pull request Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. needs-ci PRs that need a full CI run. util Issues and PRs related to the built-in util module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants