Improve error message for broken CSS in CachedStaticFilesStorage
|Reported by:||aaugustin||Owned by:||aaugustin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
When a CSS file references a non-existing image, CachedStaticFilesStorage raises an exception — which is the right thing to do at this point (see #18958).
But the backtrace doesn't tell which file contains the error. As a consequence, when switching a large project to CachedStaticFilesStorage, these errors are difficult to locate and fix.
To improve this situation, we could change the output to show the name of each file before processing it:
Processing file xxx… DONE Processing file xxx… FAIL
The goal is to make available all the information that could be useful for debugging, not to change the implementation of CachedStaticFilesStorage.
Change History (11)
comment:1 Changed 4 years ago by aaugustin
- Component changed from Uncategorized to contrib.staticfiles
comment:3 Changed 4 years ago by aaugustin
- Owner changed from nobody to aaugustin
- Status changed from new to assigned
comment:9 Changed 3 years ago by Aymeric Augustin <aymeric.augustin@…>
- Resolution set to fixed
- Status changed from assigned to closed