Add better error message when mod file fails to load