aggiunte piu info in caso di errore con drone
This commit is contained in:
parent
51c1ed477b
commit
37aac7bdab
@ -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) + '%'
|
||||
|
Loading…
Reference in New Issue
Block a user