From: Cheng Zhao Date: Fri, 30 Aug 2013 05:04:21 +0000 (+0800) Subject: Don't pollute console with error stack. X-Git-Tag: v0.4.4~6^2~10 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=db890feb5183637279ef0013a7a059557da10c58;p=electron.git Don't pollute console with error stack. --- diff --git a/renderer/api/lib/remote.coffee b/renderer/api/lib/remote.coffee index be68829c..d839a989 100644 --- a/renderer/api/lib/remote.coffee +++ b/renderer/api/lib/remote.coffee @@ -31,8 +31,7 @@ metaToValue = (meta) -> when 'value' then meta.value when 'array' then (metaToValue(el) for el in meta.members) when 'error' - console.log meta.stack - throw new Error(meta.message) + throw new Error("#{meta.message}\n#{meta.stack}") else if meta.type is 'function' # A shadow class to represent the remote function object.