diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-03 15:47:29 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-03 17:37:06 -0500 |
commit | 48833b5c306dfc88669e4cf4fc77640c426c519b (patch) | |
tree | fc4619f5174eb428a115b5d03c5fb4d977a8e664 /src/SMAPI/Framework/ModLoading | |
parent | c7f2e53f209bce7fb06fd316c380bf6161689abd (diff) | |
download | SMAPI-48833b5c306dfc88669e4cf4fc77640c426c519b.tar.gz SMAPI-48833b5c306dfc88669e4cf4fc77640c426c519b.tar.bz2 SMAPI-48833b5c306dfc88669e4cf4fc77640c426c519b.zip |
move technical compatibility details into TRACE log (#453)
Diffstat (limited to 'src/SMAPI/Framework/ModLoading')
-rw-r--r-- | src/SMAPI/Framework/ModLoading/AssemblyLoader.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs b/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs index ccbd053e..7dcf94bf 100644 --- a/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs +++ b/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs @@ -270,9 +270,10 @@ namespace StardewModdingAPI.Framework.ModLoading break; case InstructionHandleResult.NotCompatible: + this.Monitor.LogOnce(loggedMessages, $"{logPrefix}Broken code in {filename}: {handler.NounPhrase}."); if (!assumeCompatible) throw new IncompatibleInstructionException(handler.NounPhrase, $"Found an incompatible CIL instruction ({handler.NounPhrase}) while loading assembly {filename}."); - this.Monitor.LogOnce(loggedMessages, $"{logPrefix}Found an incompatible CIL instruction ({handler.NounPhrase}) while loading assembly {filename}, but SMAPI is configured to allow it anyway. The mod may crash or behave unexpectedly.", LogLevel.Warn); + this.Monitor.LogOnce(loggedMessages, $"{logPrefix}Found broken code ({handler.NounPhrase}) while loading assembly {filename}, but SMAPI is configured to allow it anyway. The mod may crash or behave unexpectedly.", LogLevel.Warn); break; case InstructionHandleResult.DetectedGamePatch: |