Show error codes on errors

Open
#1,842 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
bash, rust, zsh
Domain
cli

Research direction

No file, test, or entry point is named in the issue. Start by tracing how the terminal prompt receives command exit status and renders the red error state; done means the prompt displays the returned error code while preserving the existing error indication.

Written by the indexing model from the issue text.

Description

area:shell-terminal enhancement triaged
Discord username (optional)

gavrilikhin-d#2520

Describe the solution you'd like?

I'd like to see the actual error code on errors.
Current behaviour is to just display red border, no matter which code is returned.

~ (0.028)
abc
zsh: command not found: abc

Maybe add error-code: <code> to the prompt? So it would look this way:

~ (0.028, error-code: 1)
abc
zsh: command not found: abc
Is your feature request related to a problem? Please describe.
Need to manually check return code for errors
Additional context

No response

How important is this feature to you?

1 (Not too important)

Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087

Ignore

Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from warpdotdev/warp

All issues in warpdotdev/warp

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.