mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 19:39:39 -08:00
fix(env): log error on window title
This commit is contained in:
parent
4b8d3adb39
commit
ce8bfece2d
|
@ -72,7 +72,11 @@ func (env *ShellEnvironment) Home() string {
|
|||
|
||||
func (env *ShellEnvironment) QueryWindowTitles(processName, windowTitleRegex string) (string, error) {
|
||||
defer env.trace(time.Now(), "WindowTitle", windowTitleRegex)
|
||||
return queryWindowTitles(processName, windowTitleRegex)
|
||||
title, err := queryWindowTitles(processName, windowTitleRegex)
|
||||
if err != nil {
|
||||
env.log(Error, "QueryWindowTitles", err.Error())
|
||||
}
|
||||
return title, err
|
||||
}
|
||||
|
||||
func (env *ShellEnvironment) IsWsl() bool {
|
||||
|
|
Loading…
Reference in a new issue