Skip to content

Commit 6f0f609

Browse files
committed
CA2201
1 parent 4c227a6 commit 6f0f609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OpenTelemetry.AutoInstrumentation.StartupHook/StartupHook.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private static string GetLoaderAssemblyLocation()
8282

8383
// StartupHook and Loader assemblies are in the same path
8484
var startupAssemblyDirectoryPath = Path.GetDirectoryName(startupAssemblyFilePath) ??
85-
throw new NullReferenceException("StartupAssemblyFilePath is NULL");
85+
throw new InvalidOperationException("StartupAssemblyFilePath is NULL");
8686
return startupAssemblyDirectoryPath;
8787
}
8888
catch (Exception ex)

0 commit comments

Comments
 (0)