comoc / UnityCloudVision

Google Cloud Vision API client for Unity
58 stars 15 forks source link

Fixed WWW error handling #2

Closed KonsomeJona closed 7 years ago

KonsomeJona commented 7 years ago

From the documentation: https://docs.unity3d.com/ScriptReference/WWW-error.html

If there was no error, error will return null or an empty string (this is because some platforms don't allow nulls for string values). We recommend that you use String.IsNullOrEmpty to check for the presence of an error so that both cases are covered.

comoc commented 7 years ago

Thanks! I've just merged your pull request.