Skip to content

code block exited with non-zero status does not provide enough information for addressing the issue #12

@ssbarnea

Description

@ssbarnea

Describe the bug
When execution of a bash code block fails, there is not context information provided, making impossible to debug the issue (which can also happen on CI).

WARNING  -  �[0mmarkdown_exec: Execution of bash code block exited with non-zero status

Considering that I have 10+ command execution inside docs, finding the one that failed on CI become a gamble.

Expected behavior

  • display filename causing the failure
  • display command that returned the error, including the returned error
  • display both stdout and stderr output, so user can figure-out the build failure

Screenshots

System (please complete the following information):

  • Markdown Exec version: [e.g. 0.2.1]
  • Python version: [e.g. 3.8]
  • OS: [Windows/Linux]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions