Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add original path to error messages#363

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
blakeembrey wants to merge2 commits intomaster
base:master
Choose a base branch
Loading
frombe/debug-original-path

Conversation

blakeembrey
Copy link
Member

Closes#336,#358,#356, and#354.

AddsoriginalPath toTokenData, which will be used (when available) for the error messages. It's already added to any methods that input a string.

@blakeembreyblakeembrey requested a review froma teamMay 10, 2025 18:02
*/
function errorMessage(message: string, originalPath: string | undefined) {
if (originalPath) {
return `${message}: ${originalPath}; visit ${DEBUG_URL} for more info`;
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Not tied to this format, happy to get other opinions. Another PR used${originalPath}: ${message} format instead.

Copy link
Contributor

@bjohansebasbjohansebas left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@UlisesGasconUlisesGascon left a comment

Choose a reason for hiding this comment

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

LGTM!

@bjohansebas
Copy link
Contributor

Can we move forward and make a release for this? this really helps a lot with migrating from Express 4 to Express 5

genio reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@UlisesGasconUlisesGasconUlisesGascon approved these changes

@bjohansebasbjohansebasbjohansebas approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Improve error message when parsing fails
3 participants
@blakeembrey@bjohansebas@UlisesGascon

[8]ページ先頭

©2009-2025 Movatter.jp