mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-14 04:38:00 -08:00
fix(config): print error correctly in eval
This commit is contained in:
parent
c8068b9cb1
commit
f0c5ace9b5
|
@ -76,6 +76,10 @@ func (cfg *Config) exitWithError(err error) {
|
|||
}
|
||||
defer os.Exit(1)
|
||||
message := "Oh My Posh Error:\n\n" + err.Error()
|
||||
if cfg.eval {
|
||||
fmt.Printf("echo \"%s\"\n", message)
|
||||
return
|
||||
}
|
||||
cfg.print(message)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue