Skip to content

Commit 1b43035

Browse files
committed
v4.0 dotnet fixes
1 parent 3552562 commit 1b43035

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

binding/dotnet/Rhino/Rhino.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ public Inference GetInference()
436436
if (status != RhinoStatus.SUCCESS)
437437
{
438438
string[] messageStack = GetMessageStack();
439-
throw RhinoStatusToException(status, "Failed to reset");
439+
throw RhinoStatusToException(status, "Failed to reset", messageStack);
440440
}
441441

442442
return new Inference(isUnderstood, intent, slots);
@@ -480,10 +480,9 @@ public static string[] GetAvailableDevices()
480480
out numDevices);
481481
if (status != RhinoStatus.SUCCESS)
482482
{
483-
throw PvStatusToException(
483+
throw RhinoStatusToException(
484484
status,
485-
"Get available devices failed",
486-
GetMessageStack());
485+
"Get available devices failed");
487486
}
488487

489488
string[] devices = new string[numDevices];

0 commit comments

Comments
 (0)