Skip to content

Commit

Permalink
Merge pull request #176 from line-o/doc/cli
Browse files Browse the repository at this point in the history
Small improvement, more examples and documentation
  • Loading branch information
line-o authored Sep 16, 2021
2 parents f467026 + a934bd9 commit 256efbe
Show file tree
Hide file tree
Showing 11 changed files with 10,373 additions and 437 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test Pull Request
name: Tests

on:
pull_request:
Expand Down
10 changes: 10 additions & 0 deletions components/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ function install (client, xarName, customPackageRepoUrl) {

return queries.readAll(client, installQueryString, queryOptions)
.then(result => JSON.parse(result.pages.toString()))
.then(result => {
if (!result.success) {
const errorMessage = result.error.code + ' ' + (result.error.description || result.error.value)
return {
success: false,
error: new Error(errorMessage)
}
}
return result
})
.catch(error => { return { success: false, error } })
}

Expand Down
Loading

0 comments on commit 256efbe

Please sign in to comment.