Add a warning message when a entire stylesheet could not be parsed

This commit is contained in:
Gaël Métais
2015-05-04 17:59:16 +02:00
parent 7e86e83173
commit c202e3426b
+1 -1
View File
@@ -403,7 +403,7 @@ var policies = {
if (parts) {
return {
error: parts[2] || 'Unknown parsing error',
error: parts[2] || 'Unknown parsing error' + (parts[1] ? '. The entire file was ignored. As a result, the other CSS metrics and scores are miscalculated.' : ''),
file: parts[1] || null,
line: (parts[4] && parts[5]) ? parseInt(parts[4], 10) : null,
column: (parts[4] && parts[5]) ? parseInt(parts[5], 10) : null