mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Provide custom error structure for parse failures
This commit is contained in:
@ -61,7 +61,7 @@ object ItemRoutes {
|
||||
val of = offset.getOrElse(0)
|
||||
query match {
|
||||
case Left(err) =>
|
||||
BadRequest(BasicResult(false, err))
|
||||
BadRequest(BasicResult(false, err.render))
|
||||
case Right(sq) =>
|
||||
for {
|
||||
items <- backend.itemSearch.findItems(cfg.maxNoteLength)(
|
||||
|
Reference in New Issue
Block a user