]> khamidou — GitHub mirrors - electron.git/commitdiff
Don't pollute console with error stack.
authorCheng Zhao <zcbenz@gmail.com>
Fri, 30 Aug 2013 05:04:21 +0000 (13:04 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 30 Aug 2013 05:04:21 +0000 (13:04 +0800)
renderer/api/lib/remote.coffee

index be68829c221e372368b90cfb658b8d70c7d1543f..d839a9899a99071951ec72a7aedd2410d93f1e52 100644 (file)
@@ -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.