|
|
@ -257,7 +257,7 @@ namespace Mapbox.Platform |
|
|
|
|
|
|
|
|
|
|
|
// additional string.empty check for apiResponse.error: |
|
|
|
// additional string.empty check for apiResponse.error: |
|
|
|
// on UWP isNetworkError is sometimes set to true despite all being well |
|
|
|
// on UWP isNetworkError is sometimes set to true despite all being well |
|
|
|
if (apiResponse.isNetworkError && !string.IsNullOrEmpty(apiResponse.error)) |
|
|
|
if (apiResponse.result == UnityWebRequest.Result.ConnectionError && !string.IsNullOrEmpty(apiResponse.error)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
response.AddException(new Exception(apiResponse.error)); |
|
|
|
response.AddException(new Exception(apiResponse.error)); |
|
|
|
} |
|
|
|
} |
|
|
|