[augeas-devel] [Augeas] #20: Give more details in augtool when parsing of file fails

Augeas trac at fedorahosted.org
Thu Sep 4 19:48:48 UTC 2008


#20: Give more details in augtool when parsing of file fails
-------------------------+--------------------------------------------------
 Reporter:  raphink      |       Owner:  lutter  
     Type:  enhancement  |      Status:  new     
 Priority:  minor        |   Milestone:  wishlist
Component:  Augeas       |     Version:  0.3.0   
 Keywords:               |  
-------------------------+--------------------------------------------------
 Right now, when Augeas fails to parse a file, it provides an error like



   augtool -r $AUGEAS_ROOT print /augeas/files/etc/hosts
      /augeas/files/etc/hosts
      /augeas/files/etc/hosts/path = "/files/etc/hosts"
      /augeas/files/etc/hosts/lens
      /augeas/files/etc/hosts/lens/info =
 "/usr/share/augeas/lenses/hosts.aug:18.12-.34"
      /augeas/files/etc/hosts/lens/id = "0x806f190"
      /augeas/files/etc/hosts/error = "parse_failed"
      /augeas/files/etc/hosts/error/pos = "434"
      /augeas/files/etc/hosts/error/message = "Short iteration"


 It would be useful to have an error report like the one given by augparse,
 listing:
 * the character in the string where augeas failed to parse
 * the tree generated so far

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/20>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list