We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e366d44 commit 0aa8001Copy full SHA for 0aa8001
packages/cubejs-cli/deploy.js
@@ -10,11 +10,11 @@ const cloudReq = (options) => {
10
const { url, auth, ...restOptions } = options;
11
const authorization = auth || process.env.CUBE_CLOUD_DEPLOY_AUTH;
12
if (!authorization) {
13
- throw new (`CUBE_CLOUD_DEPLOY_AUTH isn't set`);
+ throw new Error('CUBE_CLOUD_DEPLOY_AUTH isn\'t set');
14
}
15
const payload = jwt.decode(authorization);
16
if (!payload.url || !payload.deploymentId) {
17
- throw new (`Malformed token: ${authorization}`);
+ throw new Error(`Malformed token: ${authorization}`);
18
19
return rp({
20
headers: {
0 commit comments