Skip to content

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

Merged
nodejs-github-bot merged 1 commit into
nodejs:masterfrom
ljharb:util-inspect-undefined-cause
Dec 21, 2021
Merged

util: display a present-but-undefined error cause#41247
nodejs-github-bot merged 1 commit into
nodejs:masterfrom
ljharb:util-inspect-undefined-cause

Conversation

@ljharb

@ljharbljharb commented Dec 19, 2021

Copy link
Copy Markdown
Member

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

@ljharbljharb added the util Issues and PRs related to the built-in util module. label Dec 19, 2021
@ljharb
ljharb requested a review from BridgeARDecember 19, 2021 23:34
@nodejs-github-botnodejs-github-bot added the needs-ci PRs that need a full CI run. label Dec 19, 2021
@ljharb
ljharb requested a review from aduh95December 19, 2021 23:37
@ljharb
ljharbforce-pushed the util-inspect-undefined-cause branch from 29c7b48 to eb46007CompareDecember 19, 2021 23:43

@aduh95aduh95 left a comment

Copy link
Copy Markdown
Contributor

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

@aduh95aduh95 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-actionsgithub-actionsBot 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
ljharbforce-pushed the util-inspect-undefined-cause branch from eb46007 to d318e47CompareDecember 20, 2021 05:48
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@ljharb

Copy link
Copy Markdown
MemberAuthor

What's next to land this? :-)

@targostargos added the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 20, 2021
@nodejs-github-botnodejs-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
Copy Markdown
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
Copy Markdown
Member

@ljharb

✖ This PR needs to wait 26 more hours to land

@ljharb

Copy link
Copy Markdown
MemberAuthor

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

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

Copy link
Copy Markdown
MemberAuthor

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

@aduh95

Copy link
Copy Markdown
Contributor

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

@aduh95aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 21, 2021
@nodejs-github-botnodejs-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:masterDec 21, 2021
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 8d1f13b

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

Copy link
Copy Markdown
MemberAuthor

Thanks everyone!

@ljharb

Copy link
Copy Markdown
MemberAuthor

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

@BridgeAR

Copy link
Copy Markdown
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>
@targostargos mentioned this pull request Jan 16, 2022
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>
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>
@danielleadamsdanielleadams mentioned this pull request Feb 1, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.needs-ciPRs that need a full CI run.utilIssues and PRs related to the built-in util module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@ljharb@nodejs-github-bot@targos@aduh95@BridgeAR@jasnell@lpinca@cjihrig@tniessen