mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-09 23:23:10 -06:00
Revert "Return nil instead of an error which returned a HTTP 500"
This reverts commit 1d906a8b18.
This commit is contained in:
parent
c8baa399aa
commit
d171afebad
|
|
@ -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, nil
|
return res, fmt.Errorf("backup was deleted")
|
||||||
}
|
}
|
||||||
if version != req.Version {
|
if version != req.Version {
|
||||||
return res, spec.WrongBackupVersionError(version)
|
return res, spec.WrongBackupVersionError(version)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue