diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/evendoors/particle.rb | 4 |
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 # |