From bd77f096ee70c011f27afa59817db8f7c4b29977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 12 May 2012 23:42:05 +0200 Subject: ERROR_FIELD->FIELD_ERROR_MSG --- lib/evendoors.rb | 3 ++- lib/evendoors/door.rb | 2 +- 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 -- cgit v1.1-2-g2b99