diff --git a/index.js b/index.js index 7a12885..05538eb 100644 --- a/index.js +++ b/index.js @@ -309,12 +309,16 @@ function install (client, options) { client.app.upload(file.contents, xarName) .then(response => { - if (!response.success) { return callback(new PluginError('gulp-exist', 'XAR was not uploaded')) } + if (!response.success) { + return callback(new PluginError('gulp-exist', `XAR was not uploaded: ${response.error}`)) + } log(`Install ${xarName}`) return client.app.install(xarName, customPackageRepoUrl) }) .then(response => { - if (!response.success) { return callback(new PluginError('gulp-exist', 'XAR Installation failed')) } + if (!response.success) { + return callback(new PluginError('gulp-exist', `XAR Installation failed: ${response.error}`)) + } if (response.result.update) { log('Application was updated') return callback(null, response)