fix: Adjust error message for .NET 7 assemblies, JSExport and multi-threading
}
}
} else {
- mono_assert(!MonoWasmThreads, "JSExport is not supported with assemblies generated with Net7 SDK and multi-threading");
+ mono_assert(!MonoWasmThreads, () => `JSExport with multi-threading enabled is not supported with assembly ${assembly} as it was generated with the .NET 7 SDK`);
// this needs to stay here for compatibility with assemblies generated in Net7
// it doesn't have the __GeneratedInitializer class
cwraps.mono_wasm_runtime_run_module_cctor(asm);