mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-29 12:01:07 -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)
|
defer os.Exit(1)
|
||||||
message := "Oh My Posh Error:\n\n" + err.Error()
|
message := "Oh My Posh Error:\n\n" + err.Error()
|
||||||
|
if cfg.eval {
|
||||||
|
fmt.Printf("echo \"%s\"\n", message)
|
||||||
|
return
|
||||||
|
}
|
||||||
cfg.print(message)
|
cfg.print(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue