ENYO-2291, ENYO-1420: improve PhoneGap build error management

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>