Skip to content

Commit

Permalink
Update error handling, again
Browse files Browse the repository at this point in the history
  • Loading branch information
rolljee committed Feb 7, 2024
1 parent f0576d5 commit 6fea935
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ class Action {
const { result } = json;
this.jwt = result.jwt;
} catch (error) {
throw new Error(`Cannot login to the Kuzzle PaaS services: ${String(error)}`);
console.error(error);
throw new Error("Cannot login to the Kuzzle PaaS services");
}

/**
Expand Down Expand Up @@ -212,9 +213,8 @@ class Action {
`//${this.inputs.paas_packages}/:_authToken=${token}\n`
);
} catch (error) {
throw new Error(
`Cannot login to the Kuzzle PaaS private NPM registry: ${error}`
);
console.error(error);
throw new Error("Cannot login to the Kuzzle PaaS private NPM registry");
}
}

Expand Down

0 comments on commit 6fea935

Please sign in to comment.