|
|
@ -80,9 +80,12 @@ exports.image = function(req, res) { |
|
|
|
options.message = options.report.err; |
|
|
|
options.message = options.report.err; |
|
|
|
} else if ((options.report.result.warns.$allMessages || []).length > 0) { |
|
|
|
} else if ((options.report.result.warns.$allMessages || []).length > 0) { |
|
|
|
options.status = "Warning"; |
|
|
|
options.status = "Warning"; |
|
|
|
options.message = options.report.result.warns.$allMessages[0]; |
|
|
|
options.message = options.report.result.warns.$allMessages[0].message; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
options.status = "OK"; |
|
|
|
options.status = "OK"; |
|
|
|
|
|
|
|
if ((options.report.result.infos.$allMessages || []).length > 0) { |
|
|
|
|
|
|
|
options.message = options.report.result.infos.$allMessages[options.report.result.infos.$allMessages.length-1].message; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(options); |
|
|
|
console.log(options); |
|
|
|
res.setHeader('Content-Type', 'image/svg+xml'); |
|
|
|
res.setHeader('Content-Type', 'image/svg+xml'); |
|
|
|