tool_parsecfg: Reworked error handling from commit fc59a9e1