xERROR in WSL #4259
|
I just personalized a theme and I'm getting the following error in WSL Ubuntu. When I use the default themes, I don't get the error: That's not happen in PowerShell or Git Bash, only in WSL… ¿What could be happening? |
Replies: 2 comments 2 replies
|
@afigueroa1973 this means there's a non-successful exit code somewhere (status segment). |
|
Starting from the fact that the theme was modified from an existing theme, I began to review each of the segments in the json file, finally I found the line that produces the error.
I searched in the documentation, but couldn't find what the purpose of this segment is. I'm new to this, so some things I don't understand yet, any explanation would be welcome. Thanks |

It displays the last know error code(s). Whenever you run a command, it has an exit code to let the executer know if it finished successful (0) or non-successful (non 0). When chaining command in a piper, certain shells also output multiple status'(PIPE_STATUS). In your case, on startup, something (unrelated to oh-my-posh) is having an issue and thus oh-my-posh displays that.