Commit 867ef55b8db22ae3256b5caea2b2bedb2c718612
More descriptive error/warning labels
"ERROR SUMMARY: 10" had label "10".
Author: xaizek
Author date (UTC): 2018-10-05 17:28
Committer name: xaizek
Committer date (UTC): 2018-10-05 17:28
Parent(s): 3e318b90834117d9cdef68e51e9e851cb06f3ab4
Signing key: 99DC5E4DB05F6BE2
Tree: a3e5ec6e1bcb8529b3bb6842002b906c6ba17516
File daemon.php changed (mode: 100644) (index e996f12..af76e90) |
... |
... |
function makeReport($rawOutput) |
199 |
199 |
if (sizeof($matches) != 0 && $matches[4] != '0') { |
if (sizeof($matches) != 0 && $matches[4] != '0') { |
200 |
200 |
$style = strcasecmp($matches[2], 'warning') == 0 |
$style = strcasecmp($matches[2], 'warning') == 0 |
201 |
201 |
? 'warning' : 'error'; |
? 'warning' : 'error'; |
202 |
|
$label = $matches[4]; |
|
|
202 |
|
$label = $matches[2] . ': ' . $matches[4]; |
203 |
203 |
} else { |
} else { |
204 |
204 |
$matches = []; |
$matches = []; |
205 |
205 |
} |
} |