mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Improve error reporting when a file cannot be stored
Fixes logging the error (the effect was not evaluated before) and also distinguishes this case from having no files in the request. Closes: #1976
This commit is contained in:
@ -689,6 +689,11 @@ trait Conversions {
|
||||
case UploadResult.NoItem => BasicResult(false, "The item could not be found.")
|
||||
case UploadResult.NoCollective =>
|
||||
BasicResult(false, "The collective could not be found.")
|
||||
case UploadResult.StoreFailure(_) =>
|
||||
BasicResult(
|
||||
false,
|
||||
"There were errors storing a file! See the server logs for details."
|
||||
)
|
||||
}
|
||||
|
||||
def basicResult(cr: PassChangeResult): BasicResult =
|
||||
|
Reference in New Issue
Block a user