Explorar o código

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

Gaël Métais %!s(int64=10) %!d(string=hai) anos
pai
achega
c202e3426b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/metadata/policies.js

+ 1 - 1
lib/metadata/policies.js

@@ -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