diff options
-rw-r--r-- | lib/evendoors.rb | 3 | ||||
-rw-r--r-- | lib/evendoors/door.rb | 2 | ||||
-rw-r--r-- | lib/evendoors/particle.rb | 2 |
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 |