From 37aac7bdab891c65a276f4737f36faf12b8441e7 Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Thu, 24 Sep 2015 15:12:31 +0200 Subject: [PATCH] aggiunte piu info in caso di errore con drone --- scripts/drone.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/drone.coffee b/scripts/drone.coffee index 29211ce..34b69f7 100644 --- a/scripts/drone.coffee +++ b/scripts/drone.coffee @@ -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) + '%'