Problem/Motivation

When errors occur during the minification of JS, the errors are logged. It would be useful to see in which file the error occurs, so developers are able to fix this if possible.

Proposed resolution

Add the file path to the log message.

Remaining tasks

Write patch
Review
Commit

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

seanB created an issue. See original summary.

seanb’s picture

StatusFileSize
new2.63 KB

Patch is attached.

seanb’s picture

Status: Active » Needs review
askibinski’s picture

Status: Needs review » Reviewed & tested by the community

Very helpful debugging information.
Patch looks good, applies cleanly and works as designed. Tested it with broken js to trigger the log entry.

thalles’s picture

Looks good!

thalles’s picture

Status: Reviewed & tested by the community » Needs work
thalles’s picture

Follow the patch!

thalles’s picture

Status: Needs work » Needs review
thalles’s picture

thalles’s picture

Status: Needs review » Needs work

Needs refactor the test CssMinifierUnitTest

thalles’s picture

  • thalles committed f5579d8 on 8.x-4.x
    Issue #3045457 by thalles, seanB: Add path when logging errors in JS...
thalles’s picture

Status: Needs work » Fixed

Fixed, great feature!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.