Skip to content

Commit

Permalink
Merge pull request #432 from DopplerHQ/errormsg
Browse files Browse the repository at this point in the history
Provide clearer error message when failing to mount secrets
  • Loading branch information
Piccirello authored Oct 5, 2023
2 parents 7aef471 + eee225e commit de16510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func MountSecrets(secrets []byte, mountPath string, maxReads int) (string, func(
}

if err := utils.CreateNamedPipe(mountPath, 0600); err != nil {
return "", nil, Error{Err: err, Message: "Unable to mount secrets file"}
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."}
}

fifoCleanupStarted := false
Expand Down

0 comments on commit de16510

Please sign in to comment.