[Rock-dev] orocos/configuration.rb: no warning on non-existent file

Martin Zenzes martin.zenzes at dfki.de
Fri Nov 22 16:03:05 CET 2013


Hi,

while following the tutorial [1], I made a typo trying loading a 
configuration-file in the tasks ruby-script:

{{{
     message_producer.apply_conf_file("unintnetional_typo.yml")
}}}

After following the code, it looks like the "load_file" function in 
"tools/orocos.rb/lib/orocos/configuration.rb" silently returns on 
non-existent filenames, instead if issuing a warning.

Wouldn't be a message nice? See attached patch.

Greetings
     Martin

[1] 
http://rock-robotics.org/stable/documentation/tutorials/120_basics_configure_component.html

-- 
   M.Sc. Martin Zenzes
   Space Robotics

  Hauptgeschäftsstelle Standort Bremen:
  DFKI GmbH
  Robotics Innovation Center
  Robert-Hooke-Straße 5
  28359 Bremen, Germany

   Phone: +49 (0) 421 178 45 - 6658
   Fax:   +49 (0) 421 178 45 - 4150
   E-Mail: martin.zenzes at dfki.de

  Weitere Informationen: http://www.dfki.de/robotik
  -----------------------------------------------------------------------
  Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
  Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
  Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
  (Vorsitzender) Dr. Walter Olthoff
  Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
  Amtsgericht Kaiserslautern, HRB 2313
  Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
  USt-Id.Nr.:    DE 148646973
  Steuernummer:  19/673/0060/3
  -----------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-configuration-warning-on-trying-to-load-non-existant.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://www.dfki.de/pipermail/rock-dev/attachments/20131122/247db1e1/attachment.bin 


More information about the Rock-dev mailing list