xmlconfig: Make the error message more informative