From 33e6a6db23878d998a60757ae60789f21718673e Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Mon, 14 Nov 2016 23:10:12 -0500 Subject: tweak deprecation messages --- src/StardewModdingAPI/Framework/DeprecationManager.cs | 2 +- src/StardewModdingAPI/Log.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/StardewModdingAPI/Framework/DeprecationManager.cs b/src/StardewModdingAPI/Framework/DeprecationManager.cs index 20549b3f..4de92bca 100644 --- a/src/StardewModdingAPI/Framework/DeprecationManager.cs +++ b/src/StardewModdingAPI/Framework/DeprecationManager.cs @@ -57,7 +57,7 @@ namespace StardewModdingAPI.Framework ? $"{source} used {nounPhrase}, which is deprecated since SMAPI {version}." : $"An unknown mod used {nounPhrase}, which is deprecated since SMAPI {version}."; message += severity != DeprecationLevel.PendingRemoval - ? " It will work fine for now, but may be removed in a future version of SMAPI." + ? " This will break in a future version of SMAPI." : " It will be removed soon, so the mod will break if it's not updated."; if (source == null) message += $"{Environment.NewLine}{Environment.StackTrace}"; diff --git a/src/StardewModdingAPI/Log.cs b/src/StardewModdingAPI/Log.cs index 9cb32576..02455f3a 100644 --- a/src/StardewModdingAPI/Log.cs +++ b/src/StardewModdingAPI/Log.cs @@ -178,7 +178,7 @@ namespace StardewModdingAPI /// Raise a deprecation warning. private static void WarnDeprecated() { - Program.DeprecationManager.Warn("an unknown mod", $"the {nameof(Log)} class", "1.1", DeprecationLevel.Notice); + Program.DeprecationManager.Warn($"the {nameof(Log)} class", "1.1", DeprecationLevel.Notice); } /// Get the name of the mod logging a message from the stack. -- cgit