Skip to content

Commit

Permalink
Merge pull request #651 from particle-iot/feature/sc-120185/support-a…
Browse files Browse the repository at this point in the history
…ssets-in-particle-cloud-flash

feat: [sc-120185] Support assets in particle cloud flash
  • Loading branch information
monkbroc authored Jul 20, 2023
2 parents f85884f + 8e2c6a2 commit 86a59f6
Show file tree
Hide file tree
Showing 5 changed files with 209 additions and 200 deletions.
8 changes: 4 additions & 4 deletions src/cmd/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ module.exports = class CLICommandBase {
return DEVICE_ID_PTN.test(x);
}

showUsageError(msg){
return Promise.reject(usageError(msg));
async showUsageError(msg){
throw usageError(msg);
}

showProductDeviceNameUsageError(device){
return this.showUsageError(
async showProductDeviceNameUsageError(device){
await this.showUsageError(
`\`device\` must be an id when \`--product\` flag is set - received: ${device}`
);
}
Expand Down
Loading

0 comments on commit 86a59f6

Please sign in to comment.