From 318d31ea127352dc451c5fb4c6e508daa49290ad Mon Sep 17 00:00:00 2001 From: Scott McKay Date: Sat, 12 Feb 2022 02:56:40 +1000 Subject: [PATCH] Fix C# pipeline build error (#10524) --- .../Microsoft.ML.OnnxRuntime.Tests.Common/TestDataLoader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.Common/TestDataLoader.cs b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.Common/TestDataLoader.cs index 8b556e68c1af5..1e44cfdf3699d 100644 --- a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.Common/TestDataLoader.cs +++ b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.Common/TestDataLoader.cs @@ -56,7 +56,7 @@ internal static void GetTypeAndWidth(Tensors.TensorElementType elemType, out Typ } else { - throw new OnnxRuntimeException(ErrorCode.InvalidArgument, "Unable to get information for type: " + elemType.ToString()); + throw new ArgumentException("Unable to get information for type: " + elemType.ToString()); } }