Improve error message.

master
Martin Dosch 4 weeks ago
parent 31ae111c80
commit 9b30af207d
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D

@ -318,11 +318,11 @@ func oxPublishPubKey(jid string, client *xmpp.Client, iqc chan xmpp.IQ, pubKey *
func oxGetPrivKeyLoc(jid string) (string, error) {
dataDir, err := getDataPath(strings.Replace(strings.Replace(jid, "@", "_at_", -1), ".", "_", -1))
if err != nil {
return strError, fmt.Errorf("oxGetPubKeyLoc: %w", err)
return strError, fmt.Errorf("oxGetPrivKeyLoc: %w", err)
}
oldDataDir, err := getDataPath("oxprivkeys/")
if err != nil {
return strError, fmt.Errorf("oxGetPubKeyLoc: %w", err)
return strError, fmt.Errorf("oxGetPrivKeyLoc: %w", err)
}
// TODO: Remove handling of oldDataFile in a later version when it's very likely that there are no
// more versions in use using the oldDataFile (<0.8.3).

Loading…
Cancel
Save