Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-05-13 01:45:57 +0400
committerisaacs <i@izs.me>2010-05-13 01:45:57 +0400
commitd3874b307dab9d018fc16948c5b33162628490b7 (patch)
treecc5dd9c17a74e9388ee0245b461cf461067c4f2e /lib
parent3f3a2b648d4a07bf0c4505ac8974e0e0cd46568a (diff)
Dive in a bit deeper with the log fn
Diffstat (limited to 'lib')
-rw-r--r--lib/utils/log.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/log.js b/lib/utils/log.js
index 143071e99..41c09ad40 100644
--- a/lib/utils/log.js
+++ b/lib/utils/log.js
@@ -4,7 +4,7 @@ var sys = require("sys")
function log (msg, pref, cb) {
if (msg instanceof Error) msg = msg.stack
- if (typeof msg !== "string") msg = sys.inspect(msg)
+ if (typeof msg !== "string") msg = sys.inspect(msg, 0, 4)
pref = (pref && " \033[35m" + pref+"\033[0m") || ""
if (msg) msg = "\033[31mnpm\033[0m"+pref+" "+msg
sys.error(msg)