1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

feat(parser): update to latest Redis parser & errors (#1470)

* Update redis errors and redis parser
* Fix lint errors
* Add node 12 to travis ci
* Add appveyor node 12
* Fix some of existing errors

This drops support for hiredis.
This commit is contained in:
Vissarut Tantiwattanarom
2020-02-03 21:53:56 +04:00
committed by GitHub
parent 1f082aca54
commit 78936ac50c
9 changed files with 50 additions and 47 deletions

View File

@@ -2,14 +2,13 @@
var util = require('util');
var assert = require('assert');
var RedisError = require('redis-parser').RedisError;
var RedisError = require('redis-errors').RedisError;
var ADD_STACKTRACE = false;
function AbortError (obj, stack) {
assert(obj, 'The options argument is required');
assert.strictEqual(typeof obj, 'object', 'The options argument has to be of type object');
RedisError.call(this, obj.message, ADD_STACKTRACE);
Object.defineProperty(this, 'message', {
value: obj.message || '',
configurable: true,