refs piwik/piwik#5864 do not commit changes if generation fails but output error to STDERR