File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff 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 ] ;
Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ public static void Main(string[] args)
276276 return ;
277277 }
278278
279- if ( showAvailableDevices )
279+ if ( showInferenceDevices )
280280 {
281281 Console . WriteLine ( string . Join ( Environment . NewLine , Rhino . GetAvailableDevices ( ) ) ) ;
282282 return ;
Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ public static void Main(string[] args)
323323 return ;
324324 }
325325
326- if ( showAvailableDevices )
326+ if ( showInferenceDevices )
327327 {
328328 Console . WriteLine ( string . Join ( Environment . NewLine , Rhino . GetAvailableDevices ( ) ) ) ;
329329 return ;
You can’t perform that action at this time.
0 commit comments