From a94a893d5ebd452ef164fa329dc19248d2d4fb86 Mon Sep 17 00:00:00 2001 From: Chi Lo <54722500+chilo-ms@users.noreply.github.com> Date: Tue, 4 May 2021 01:51:35 -0700 Subject: [PATCH] Update SessionOptions.cs (#7540) Fix compile warning --- csharp/src/Microsoft.ML.OnnxRuntime/SessionOptions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp/src/Microsoft.ML.OnnxRuntime/SessionOptions.cs b/csharp/src/Microsoft.ML.OnnxRuntime/SessionOptions.cs index 8f4c937293..11a24d93ac 100644 --- a/csharp/src/Microsoft.ML.OnnxRuntime/SessionOptions.cs +++ b/csharp/src/Microsoft.ML.OnnxRuntime/SessionOptions.cs @@ -96,7 +96,7 @@ namespace Microsoft.ML.OnnxRuntime catch (Exception e) { options.Dispose(); - throw; + throw e; } }