Skip to content

Commit

Permalink
Merge pull request #435 from DopplerHQ/errormsg
Browse files Browse the repository at this point in the history
chore: fix error message detail
  • Loading branch information
Piccirello authored Oct 10, 2023
2 parents 0f85778 + 695bcd1 commit 3952f04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controllers/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ func MountSecrets(secrets []byte, mountPath string, maxReads int) (string, func(
}

if utils.Exists(mountPath) {
return "", nil, Error{Err: errors.New("The mount path already exists")}
return "", nil, Error{Err: errors.New("The mount path already exists. This may be due to another running instance of the Doppler CLI, or due to an improper shutdown. If this is unexpected, delete the file and try again.")}
}

if err := utils.CreateNamedPipe(mountPath, 0600); err != nil {
return "", nil, Error{Err: err, Message: "Unable to mount secrets file. This may be due to another running instance of the Doppler CLI, or due to an improper shutdown. If this is unexpected, delete the file and try again."}
return "", nil, Error{Err: err, Message: "Unable to mount secrets file"}
}

fifoCleanupStarted := false
Expand Down

0 comments on commit 3952f04

Please sign in to comment.