diff --git a/index.js b/index.js index e415ea4..37c7396 100644 --- a/index.js +++ b/index.js @@ -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"); } /** @@ -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"); } }