diff --git a/packages/cubejs-prestodb-driver/driver/PrestoDriver.js b/packages/cubejs-prestodb-driver/driver/PrestoDriver.js index 8ac831aba0460..3ff339dec53ee 100644 --- a/packages/cubejs-prestodb-driver/driver/PrestoDriver.js +++ b/packages/cubejs-prestodb-driver/driver/PrestoDriver.js @@ -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}`)); } }); });