Fix SQL directory: Return Failed instead of Error when the query returns no results
This commit is contained in:
@@ -14,6 +14,7 @@ If you are upgrading from v0.16.x, replace the binary (or run `docker pull`). If
|
||||
- JMAP:
|
||||
- Patching ids containing digits in JSON Pointers failes.
|
||||
- Patching nested objects with `null` values fails.
|
||||
- SQL directory: Return `Failed` instead of `Error` when the query returns no results.
|
||||
|
||||
## [0.16.4] - 2026-05-05
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ impl SqlDirectory {
|
||||
.await
|
||||
.caused_by(trc::location!())?,
|
||||
) else {
|
||||
return Err(trc::AuthEvent::Error
|
||||
return Err(trc::AuthEvent::Failed
|
||||
.into_err()
|
||||
.details("SQL login query did not return an account")
|
||||
.ctx(trc::Key::AccountName, username.to_string()));
|
||||
|
||||
Reference in New Issue
Block a user