summaryrefslogtreecommitdiffstats
path: root/lib/evendoors/particle.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/evendoors/particle.rb')
-rw-r--r--lib/evendoors/particle.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/evendoors/particle.rb b/lib/evendoors/particle.rb
index 7fd3e11..dabe2e9 100644
--- a/lib/evendoors/particle.rb
+++ b/lib/evendoors/particle.rb
@@ -74,9 +74,9 @@ module EvenDoors
@dsts.shift
end
#
- def error! e
+ def error! e, dst=nil
@action = EvenDoors::ACT_ERROR
- @dst = @src
+ @dst = dst||@src
@payload[EvenDoors::ERROR_FIELD]=e
end
#