aggiunte piu info in caso di errore con drone

This commit is contained in:
Enrico Fasoli 2015-09-24 15:12:31 +02:00
parent 51c1ed477b
commit 37aac7bdab

View File

@ -23,7 +23,7 @@ module.exports = (robot) ->
try
report = JSON.parse body
catch e
return res.send 'Errore: '+e
return res.send 'Errore: '+e+'\n\nRisposta del server: '+body
unless report?.files?.push? and report?.coverage?.toFixed?
return res.send 'Errore: informazioni insufficienti'
t = '=== Coverage: ' + report.coverage.toFixed(0) + '%'