Finer error messages when instantiation fail