Closed alexander-haller closed 3 months ago
In GitLab by @mhxion on May 17, 2024, 17:02
unassigned @mhxion
In GitLab by @mhxion on Jul 1, 2024, 14:09
marked the checklist item Use <"response" <file stub name>>
is exported instead of "data" for raw commands as completed
In GitLab by @mhxion on Jul 1, 2024, 14:09
marked the checklist item Leave <"data" <file stub name>>
is exported for plugins when we are indeed exporting things that qualify more as "data". as completed
In GitLab by @mhxion on May 17, 2024, 16:27
Discovered by @alexander-haller. Related to #34.
.. data successfully exported to ...
can be misleading when the response was not successful! We can remedy this by printing a different error message for when a response code is4**
,5**
. Internally, we always know if a request was actually unsuccessful, it's just the raw commands ignore any error in API response. We entirely avoid the term "successful" in the message, and instead printWarning: Request was not successful. <response <file stub name>> is exported to <path> anyway."
, and exit with exit code 1.Technically, we store API response as is from the raw commands. We can be more careful with our output message.
<"response" <file stub name>>
is exported instead of "data" for raw commands<"data" <file stub name>>
is exported for plugins when we are indeed exporting things that qualify more as "data".