Skip to content

Commit 918cf21

Browse files
authored
Return error when profile cannot be loaded (#2355)
1 parent 69a6ce8 commit 918cf21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/profile/profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func LoadProfile(profileName string) (*Profile, error) {
239239

240240
profile, err := loadProfile(loc.ProfileDir(), profileName)
241241
if err != nil {
242-
return nil, nil
242+
return nil, err
243243
}
244244

245245
err = profile.migrate(currentVersion)

0 commit comments

Comments
 (0)