Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit d2f1fce

Browse files
Print the original error message, the one checking the file locally, instead of the one looking for the credential set in the credential store.
Signed-off-by: Silvin Lubecki <[email protected]>
1 parent 2a585be commit d2f1fce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/commands/cnab.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ func addNamedCredentialSets(credStore appstore.CredentialStore, namedCredentials
5454
c, err = credentials.Load(file)
5555
} else {
5656
c, err = credStore.Read(file)
57+
if os.IsNotExist(err) {
58+
err = e
59+
}
5760
}
5861
if err != nil {
5962
return err

0 commit comments

Comments
 (0)