Skip to content

Improve the call-system-and-get-output docs #40

Description

@callendorph

In the docs for call-system-and-get-output, it says:

If the call fails with an error then the function throws a SystemCallException, otherwise it returns the printed output from the program output and error streams.

This implies to me that if the command being invoked fails with an non-zero error code - that it would throw an exception. There is no other way to receive the error code of the process executed by this function - so the only thing left would be an exception.

However if you run this with a command that returns non-zero, then the command just silently returns content as if the process succeeded.

At the very least this is confusing and we should make the docs more clear. Better might be to improve the function so we can actually get an error code from it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions