Skip to content

Commit 90cc70b

Browse files
committed
improve exception, remove comment
1 parent 928a460 commit 90cc70b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tracer/src/Datadog.Trace.ClrProfiler.Managed.Loader/Startup.NetCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ internal static string GetProfilerPathEnvVarNameForArch()
7171
Architecture.X86 => "CORECLR_PROFILER_PATH_32",
7272
Architecture.Arm64 => "CORECLR_PROFILER_PATH_ARM64",
7373
Architecture.Arm => "CORECLR_PROFILER_PATH_ARM",
74-
_ => throw new ArgumentOutOfRangeException() // can't happen, but if it does, there's a catch up the stack.
74+
_ => throw new ArgumentOutOfRangeException(nameof(RuntimeInformation.ProcessArchitecture), RuntimeInformation.ProcessArchitecture, "Unsupported architecture")
7575
};
7676
}
7777

0 commit comments

Comments
 (0)