Improved error message while reading configuration