From db890feb5183637279ef0013a7a059557da10c58 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 30 Aug 2013 13:04:21 +0800 Subject: [PATCH] Don't pollute console with error stack. --- renderer/api/lib/remote.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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. -- 2.43.0