cfs-tools / cfs-basecamp

Provides a framework and tools for developing, downloading, and integrating core Flight System (cFS) applications into an operational system.
Other
28 stars 4 forks source link

Improve core JSON table error reporting #32

Closed dmccomas closed 8 months ago

dmccomas commented 1 year ago

When a JSON table file fails to be processed due to insufficient buffer space, the error event reports the file as "Invalid-Malformed". This leads the user to look at the JSON syntax which is often the culprit during initial development. However, if a table grows for a mature app, the buffer space issue may arise and not be obvious.

Since Basecamp uses FreeRTOS's core-JSON parser, the solution options may be limited. At a minimum the event message text should enumerate which errors can cause the processing failure.

dmccomas commented 8 months ago

Changed JSONIllegalDocument message from "Invalid-Malformed" to "Malformed JSON or BufOverflow"