Fix C# pipeline build error (#10524)

This commit is contained in:
Scott McKay 2022-02-12 02:56:40 +10:00 committed by GitHub
parent 4e2a974090
commit 318d31ea12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ namespace Microsoft.ML.OnnxRuntime.Tests
}
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());
}
}