- if (acfg->aot_opts.print_skipped_methods) {
- printf ("Skip (JIT failure): %s\n", mono_method_get_full_name (method));
- if (cfg->exception_message)
- printf ("Caused by: %s\n", cfg->exception_message);
- }
+ /* Some instances cannot be JITted due to constraints etc. */
+ if (!method->is_inflated)
+ report_loader_error (acfg, &cfg->error, "Unable to compile method '%s' due to: '%s'.\n", mono_method_get_full_name (method), mono_error_get_message (&cfg->error));