mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-12-14 01:14:03 +01:00
Initial commit
This commit is contained in:
24
node_modules/redis-parser/lib/redisError.js
generated
vendored
Normal file
24
node_modules/redis-parser/lib/redisError.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
'use strict'
|
||||
|
||||
var util = require('util')
|
||||
|
||||
function RedisError (message, stack) {
|
||||
Object.defineProperty(this, 'message', {
|
||||
value: message || '',
|
||||
configurable: true,
|
||||
writable: true
|
||||
})
|
||||
if (stack || stack === undefined) {
|
||||
Error.captureStackTrace(this, RedisError)
|
||||
}
|
||||
}
|
||||
|
||||
util.inherits(RedisError, Error)
|
||||
|
||||
Object.defineProperty(RedisError.prototype, 'name', {
|
||||
value: 'RedisError',
|
||||
configurable: true,
|
||||
writable: true
|
||||
})
|
||||
|
||||
module.exports = RedisError
|
||||
Reference in New Issue
Block a user