summaryrefslogtreecommitdiffstats
path: root/lib/evendoors
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-09 08:48:21 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-09 08:48:21 +0200
commit84fc5e33d1b81c3addb63b5f6f930a89f3cbcf4e (patch)
tree4f26094782970d296d32b738f9975fbb32fcba18 /lib/evendoors
parent1b72a2a782d255ff57899b0d30e494faa42c0b40 (diff)
downloadedoors-ruby-84fc5e33d1b81c3addb63b5f6f930a89f3cbcf4e.zip
edoors-ruby-84fc5e33d1b81c3addb63b5f6f930a89f3cbcf4e.tar.gz
Particle: add dst=nil parameter to #error!
Diffstat (limited to 'lib/evendoors')
-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
#