mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-11 08:03:09 -06:00
Return nil instead of an error which returned a HTTP 500
This commit is contained in:
parent
ca8fa0188d
commit
1d906a8b18
|
|
@ -743,7 +743,7 @@ func (a *UserInternalAPI) uploadBackupKeys(ctx context.Context, req *api.Perform
|
||||||
return res, fmt.Errorf("failed to query version: %w", err)
|
return res, fmt.Errorf("failed to query version: %w", err)
|
||||||
}
|
}
|
||||||
if deleted {
|
if deleted {
|
||||||
return res, fmt.Errorf("backup was deleted")
|
return res, nil
|
||||||
}
|
}
|
||||||
if version != req.Version {
|
if version != req.Version {
|
||||||
return res, spec.WrongBackupVersionError(version)
|
return res, spec.WrongBackupVersionError(version)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue