Closed tangobravo62 closed 3 years ago
Fixed with commit 404e45f.
prosEO-compliant messages are now extracted from the "Warning" header:
prosEO (PTM)> processor update --file=testproc.json
(E2987) Processor data invalid (cause: (E2268) Task ptm_l2 defined as critical, but no criticality level given)
Currently when receiving a 400 BAD REQUEST status, the CLI wraps the content of the "Warning:" header in a generic error message:
It would be nicer, if the CLI parsed the message and just returned the inner message, if the "Warning:" header was well-formed (according to the HTTP protocol definition
199 <sender> <message>
and the prosEO convention for the message(<message code>) <message text>
). For the case above, the output would then just be: