summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework
diff options
context:
space:
mode:
authoratravita-mods <94934860+atravita-mods@users.noreply.github.com>2022-08-17 21:11:47 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-10-08 13:27:06 -0400
commit627100509c0a9c637b495473ef71f13093e885d2 (patch)
treecd7eaa898042252bee71a6aa6da53cc397083fb0 /src/SMAPI/Framework
parent0a2a1a08def3d97f21b4138d9e39c563389b492a (diff)
downloadSMAPI-627100509c0a9c637b495473ef71f13093e885d2.tar.gz
SMAPI-627100509c0a9c637b495473ef71f13093e885d2.tar.bz2
SMAPI-627100509c0a9c637b495473ef71f13093e885d2.zip
hide throwhelper from stack trace in dotnet 6
Diffstat (limited to 'src/SMAPI/Framework')
-rw-r--r--src/SMAPI/Framework/ContentManagers/ModContentManager.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/ContentManagers/ModContentManager.cs b/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
index dd30c225..0c793808 100644
--- a/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
+++ b/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
@@ -353,6 +353,9 @@ namespace StardewModdingAPI.Framework.ContentManagers
[DoesNotReturn]
[DebuggerStepThrough, DebuggerHidden]
[MethodImpl(MethodImplOptions.NoInlining)]
+#if NET6_0_OR_GREATER
+ [StackTraceHidden]
+#endif
private void ThrowLoadError(IAssetName assetName, ContentLoadErrorType errorType, string reasonPhrase, Exception? exception = null)
{
throw new SContentLoadException(errorType, $"Failed loading asset '{assetName}' from {this.Name}: {reasonPhrase}", exception);