Skip to content

Commit

Permalink
Provide clearer error message when failing to mount secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Piccirello committed Oct 5, 2023
1 parent 7aef471 commit eee225e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/secrets.go
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 eee225e

Please sign in to comment.