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

[FIX] minify: In case of error, include full resource path in the error messsage #1102

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

RandomByte
Copy link
Member

@RandomByte RandomByte commented Jan 10, 2025

As suggested by Vest in SAP/ui5-tooling#890 (comment), this should make it easier to identify the resource causing an error in the minify task.

@coveralls
Copy link

coveralls commented Jan 10, 2025

Coverage Status

coverage: 94.907%. remained the same
when pulling 8afc2bd on minify-error-full-path
into c1e5e9d on main.

@RandomByte RandomByte requested a review from a team January 10, 2025 08:53
@@ -274,6 +274,7 @@ export default async function({
filename,
dbgFilename,
code,
resourcePath: resource.getPath(),
Copy link
Member

Choose a reason for hiding this comment

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

resourcePath is already available as local variable. Or is the path changed in between?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, you're right! Corrected 👍

…or messsage

As suggested by Vest in SAP/ui5-tooling#890 (comment)

This should make it easier to identify the resource that is causing an error in the minify task.
@RandomByte RandomByte force-pushed the minify-error-full-path branch from c257851 to 8afc2bd Compare January 10, 2025 09:06
@RandomByte RandomByte merged commit aadb463 into main Jan 10, 2025
17 checks passed
@RandomByte RandomByte deleted the minify-error-full-path branch January 10, 2025 09:13
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.

3 participants