Fix error handling and get tests back to working

This commit is contained in:
Dane Everitt
2020-11-08 15:15:39 -08:00
parent 205c4d541e
commit 68bdcb3cbc
9 changed files with 273 additions and 230 deletions

View File

@@ -114,7 +114,7 @@ func rootCmdRun(*cobra.Command, []string) {
// been specified in the command startup.
if configPath == config.DefaultLocation {
if err := RelocateConfiguration(); err != nil {
if os.IsNotExist(err) {
if errors.Is(err, os.ErrNotExist) {
exitWithConfigurationNotice()
}