Improve configuration error handling