CYBUTEK / KSPAddonVersionChecker

KSP-AVC in-game plugin.
32 stars 22 forks source link

Show parse error when .version JSON file has wrong syntax? #3

Open Dunbaratu opened 9 years ago

Dunbaratu commented 9 years ago

Is it possible to get some sort of error message, either onscreen or in the Unity.Debug.Log, that displays the parse error when the JSON version file has a syntax error?

When trying to add AVC support to a new mod I was publishing, I kept getting this error message in the log:

       NAME: NULL (required)
       URL: NULL
       DOWNLOAD: NULL
       GITHUB: NULL
       VERSION: NULL (required)
       KSP_VERSION: 0.25
       KSP_VERSION_MIN: NULL
       KSP_VERSION_MAX: NULL
       CompatibleKspVersion: True
       CompatibleKspVersionMin: True
       CompatibleKspVersionMax: True
       CompatibleGitHubVersion: True

Without it telling me that there was a syntax error in the version file that cased it to fail to read it. (I had a missing quote mark, it turns out).