Don't pollute console with error stack.
This commit is contained in:
parent
738cbd4080
commit
db890feb51
1 changed files with 1 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue