Skip to content

Commit

Permalink
Merge pull request #216 from line-o/feat/install-errors
Browse files Browse the repository at this point in the history
more meaningful installation error messages
  • Loading branch information
duncdrum authored Feb 4, 2023
2 parents 1428e47 + 13ba419 commit e02da38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
matrix:
os: [ubuntu-latest]
node-version: [14, 16, 18]
exist-version: [latest, release, 5.4.1, 4.10.0]
exist-version: [latest, release, 5.5.1, 4.11.1]
services:
# Label used to access the service container
exist:
Expand Down
8 changes: 6 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e02da38

Please sign in to comment.