Skip to content

Commit 5e42302

Browse files
author
Ruben Bridgewater
committed
Accept arbitrary arguments in the debug function
1 parent 228573b commit 5e42302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/debug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
var index = require('../');
44

5-
function debug (msg) {
5+
function debug () {
66
if (index.debug_mode) {
7-
console.error(msg);
7+
console.error.apply(null, arguments);
88
}
99
}
1010

0 commit comments

Comments
 (0)