diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/lock.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/lock.js b/common/lock.js index 5a2d7c8..8dd2f5b 100644 --- a/common/lock.js +++ b/common/lock.js @@ -70,7 +70,7 @@ function _lock(lock, cb) { function unlock(lock) { if (lock.free) - throw new Exception("Attempting to release a free lock"); + throw new Error("Attempting to release a free lock"); if (lock.queue.length === 0) { lock.free = true; |