Fix bug in error reporting

Another place where the YAML scanner error is missed has been fixed.
Also fixed are two places with wrong formating label.