reduce error info
This commit is contained in:
parent
3891d93b8d
commit
340e55ea46
@ -18,7 +18,7 @@ ApikeyAuth.prototype.verifyCredentials = function (callback) {
|
||||
this.metadataBackend.getApikey(this.username, this.apikeyToken, (err, apikey) => {
|
||||
if (err) {
|
||||
err.http_status = 500;
|
||||
err.message = 'Unexpected error fetching from Redis';
|
||||
err.message = 'Unexpected error';
|
||||
|
||||
return callback(err);
|
||||
}
|
||||
|
@ -19,9 +19,6 @@ QueryRunner.prototype.run = function (job_id, sql, user, timeout, dbparams, call
|
||||
}
|
||||
|
||||
const dbConfigurationError = new Error('Batch Job DB misconfiguration');
|
||||
dbConfigurationError.type = 'batch-job';
|
||||
dbConfigurationError.subtype = 'job-db-conf-error';
|
||||
dbConfigurationError.http_status = 400;
|
||||
|
||||
return callback(dbConfigurationError);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user