diff --git a/lib/de.block.js b/lib/de.block.js index d79c80b..ab4732a 100644 --- a/lib/de.block.js +++ b/lib/de.block.js @@ -279,8 +279,10 @@ de.Block.prototype.run = function(params, context) { options.after(params, context, result); } - if (options.result) { - result = new de.Result.Value( options.result( result.object(), context, params ) ); + if (!(result instanceof de.Result.Error)) { + if (options.result) { + result = new de.Result.Value( options.result( result.object(), context, params ) ); + } } if (options.template) {