Skip to content

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

@Dunbaratu

Description

@Dunbaratu

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions