Skip to content

Commit

Permalink
fix: Presto error messages aren't showed correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Aug 19, 2019
1 parent e8c3af9 commit 5f41afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cubejs-prestodb-driver/driver/PrestoDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class PrestoDriver extends BaseDriver {
resolve(fullData);
},
error: error => {
reject(error.message || JSON.stringify(error));
reject(new Error(`${error.message}\n${error.error}`));
}
});
});
Expand Down

0 comments on commit 5f41afe

Please sign in to comment.