File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
dotnet/src/webdriver/Remote Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
- // <copyright file="ErrorResponse.cs" company="WebDriver Committers">
1
+ // <copyright file="ErrorResponse.cs" company="WebDriver Committers">
2
2
// Licensed to the Software Freedom Conservancy (SFC) under one
3
3
// or more contributor license agreements. See the NOTICE file
4
4
// distributed with this work for additional information
@@ -68,9 +68,19 @@ public ErrorResponse(Dictionary<string, object> responseValue)
68
68
this . className = responseValue [ "class" ] . ToString ( ) ;
69
69
}
70
70
71
- if ( responseValue . ContainsKey ( "stackTrace" ) )
71
+ if ( responseValue . ContainsKey ( "stackTrace" ) || responseValue . ContainsKey ( "stacktrace" ) )
72
72
{
73
- object [ ] stackTraceArray = responseValue [ "stackTrace" ] as object [ ] ;
73
+ object [ ] stackTraceArray = null ;
74
+
75
+ if ( responseValue . ContainsKey ( "stackTrace" ) )
76
+ {
77
+ stackTraceArray = responseValue [ "stackTrace" ] as object [ ] ;
78
+ }
79
+ else if ( responseValue . ContainsKey ( "stacktrace" ) )
80
+ {
81
+ stackTraceArray = responseValue [ "stacktrace" ] as object [ ] ;
82
+ }
83
+
74
84
if ( stackTraceArray != null )
75
85
{
76
86
List < StackTraceElement > stackTraceList = new List < StackTraceElement > ( ) ;
You can’t perform that action at this time.
0 commit comments