8000 Option to return error code corresponding to motu web server response · Issue #12 · clstoulouse/motu-client-python · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Option to return error code corresponding to motu web server response #12
Open
@bakhansen

Description

@bakhansen

E.g. motu-client.py returns the following log:

...
[ERROR] 004-6 : The date range is invalid. Invalid date range: [2018-10-22 02:00:00,2018-10-22 02:59:59]. Valid range is: [2014-01-01 12:00:00,2018-10-26 12:00:00]

cf. https://github.com/clstoulouse/motu#log-errors

And the client returns the exit code '0' which basically means success.

My suggestion would be to return the exit code according to exit code of the server.

Maybe it could be an option in order to support backwards compatibility.

Metadata

Metadata

Assignees

No one a 33B0 ssigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0