Skip to content

Commit 73bbbe0

Browse files
committed
code: fix error in variable referencing
1 parent 2d08771 commit 73bbbe0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ Session.prototype.save = function(){
290290
json = opts.encode(json);
291291
debug('save %s', json);
292292
} catch (e) {
293-
debug('encode %j error: %s', json, err);
293+
debug('encode %j error: %s', json, e);
294294
json = '';
295295
}
296296
ctx.cookies.set(key, json, opts);

0 commit comments

Comments
 (0)