Skip to content

Commit 80555b9

Browse files
authored
include uploadId in finishUpload failure (#8990)
improved error message to better understand what’s happening with those failed finishUpload calls.
1 parent e95351c commit 80555b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webknossos-datastore/app/com/scalableminds/webknossos/datastore/controllers/DataSourceController.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class DataSourceController @Inject()(
190190
logTime(slackNotificationService.noticeSlowRequest) {
191191
for {
192192
datasetId <- uploadService
193-
.getDatasetIdByUploadId(request.body.uploadId) ?~> "dataset.upload.validation.failed"
193+
.getDatasetIdByUploadId(request.body.uploadId) ?~> s"Cannot find running upload with upload id ${request.body.uploadId}"
194194
response <- accessTokenService.validateAccessFromTokenContext(UserAccessRequest.writeDataset(datasetId)) {
195195
for {
196196
_ <- uploadService.finishUpload(request.body, datasetId) ?~> Messages("dataset.upload.finishFailed",

0 commit comments

Comments
 (0)