mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-08-25 22:12:02 +02:00
Initial commit
This commit is contained in:
23
node_modules/redis-parser/lib/replyError.js
generated
vendored
Normal file
23
node_modules/redis-parser/lib/replyError.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
'use strict'
|
||||
|
||||
var util = require('util')
|
||||
var RedisError = require('./redisError')
|
||||
var ADD_STACKTRACE = false
|
||||
|
||||
function ReplyError (message) {
|
||||
var tmp = Error.stackTraceLimit
|
||||
Error.stackTraceLimit = 2
|
||||
RedisError.call(this, message, ADD_STACKTRACE)
|
||||
Error.captureStackTrace(this, ReplyError)
|
||||
Error.stackTraceLimit = tmp
|
||||
}
|
||||
|
||||
util.inherits(ReplyError, RedisError)
|
||||
|
||||
Object.defineProperty(ReplyError.prototype, 'name', {
|
||||
value: 'ReplyError',
|
||||
configurable: true,
|
||||
writable: true
|
||||
})
|
||||
|
||||
module.exports = ReplyError
|
Reference in New Issue
Block a user