summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-12 23:42:05 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-12 23:42:05 +0200
commitbd77f096ee70c011f27afa59817db8f7c4b29977 (patch)
tree5b92154d5fa6b0e4e22bcd5031193b54c0afcfab /lib
parent54d01433015c886ad188f456ed5b10b0184179ec (diff)
downloadedoors-ruby-bd77f096ee70c011f27afa59817db8f7c4b29977.zip
edoors-ruby-bd77f096ee70c011f27afa59817db8f7c4b29977.tar.gz
ERROR_FIELD->FIELD_ERROR_MSG
Diffstat (limited to 'lib')
-rw-r--r--lib/evendoors.rb3
-rw-r--r--lib/evendoors/door.rb2
-rw-r--r--lib/evendoors/particle.rb2
3 files changed, 4 insertions, 3 deletions
diff --git a/lib/evendoors.rb b/lib/evendoors.rb
index 0a3ceca..1f29b4c 100644
--- a/lib/evendoors.rb
+++ b/lib/evendoors.rb
@@ -37,7 +37,8 @@ module EvenDoors
LNK_CONDF = 'edoors_lnk_condf'.freeze
LNK_CONDV = 'edoors_lnk_condv'.freeze
#
- ERROR_FIELD = 'edoors_error'.freeze
+ FIELD_ERROR_MSG = 'edoors_error'.freeze
+ #
ERROR_ROUTE_NS = 'routing error: no source'.freeze
ERROR_ROUTE_RRWD = 'routing error: right room, wrong door'.freeze
ERROR_ROUTE_RRNDD = 'routing error: right room, no drill down'.freeze
diff --git a/lib/evendoors/door.rb b/lib/evendoors/door.rb
index 4bc1465..8bb19f2 100644
--- a/lib/evendoors/door.rb
+++ b/lib/evendoors/door.rb
@@ -53,7 +53,7 @@ module EvenDoors
#
def garbage
puts " * #{path} didn't give back #{p}" if @spin.debug_errors
- puts "\t#{@saved.data EvenDoors::ERROR_FIELD}" if @saved.action==EvenDoors::ACT_ERROR
+ puts "\t#{@saved.data EvenDoors::FIELD_ERROR_MSG}" if @saved.action==EvenDoors::ACT_ERROR
release_p @saved
@saved = nil
end
diff --git a/lib/evendoors/particle.rb b/lib/evendoors/particle.rb
index 2d024fd..b1840d6 100644
--- a/lib/evendoors/particle.rb
+++ b/lib/evendoors/particle.rb
@@ -135,7 +135,7 @@ module EvenDoors
def error! e, dst=nil
@action = EvenDoors::ACT_ERROR
@dst = dst||@src
- @payload[EvenDoors::ERROR_FIELD]=e
+ @payload[EvenDoors::FIELD_ERROR_MSG]=e
end
#
def apply_link! lnk