aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-12-23 07:16:36 -0500
committerGitHub <noreply@github.com>2022-12-23 07:16:36 -0500
commitf94616ec76e01145a7b2b90c11b27a25d4a4be96 (patch)
tree885844b5412f824b4ba9aad3725080dded0d27fe /commands
parent0a5a0ec1ef4ad98bc2116a953e201f96474941ab (diff)
parent0cd2f3b4bda294b040e31337ddb380fb72192a63 (diff)
downloadgit-bug-f94616ec76e01145a7b2b90c11b27a25d4a4be96.tar.gz
Merge pull request #936 from MichaelMure/feat/935/disambiguate-config-errors
feat(935): disambiguate config errors
Diffstat (limited to 'commands')
-rw-r--r--commands/webui.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/webui.go b/commands/webui.go
index 6cbaff78..ea9fde0c 100644
--- a/commands/webui.go
+++ b/commands/webui.go
@@ -2,6 +2,7 @@ package commands
import (
"context"
+ "errors"
"fmt"
"io"
"log"
@@ -178,7 +179,7 @@ func runWebUI(env *execenv.Env, opts webUIOptions) error {
env.Out.Println("Press Ctrl+c to quit")
configOpen, err := env.Repo.AnyConfig().ReadBool(webUIOpenConfigKey)
- if err == repository.ErrNoConfigEntry {
+ if errors.Is(err, repository.ErrNoConfigEntry) {
// default to true
configOpen = true
} else if err != nil {