We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17b66a0 commit 1ef2ddaCopy full SHA for 1ef2dda
src/main/scala/fi/vm/sade/hakurekisteri/integration/ytl/YtlFetchActor.scala
@@ -338,7 +338,6 @@ class YtlFetchActor(
338
}
339
340
Future.sequence(futures.toSeq).onComplete { _ =>
341
- log.info(s"($tunniste) Futures complete! Haku $hakuOid")
342
log
343
.info(
344
s"($tunniste) Completed YTL syncAll for haku $hakuOid with hasErrors=${hasErrors.get()}"
@@ -347,7 +346,11 @@ class YtlFetchActor(
347
346
348
result.map(r => {
349
log.info(s"($tunniste) $r Future finished, returning none")
350
- None
+ if (hasErrors.get()) {
+ Some(new Throwable(s"($tunniste) sync for haku $hakuOid had errors"))
351
+ } else {
352
+ None
353
+ }
354
})
355
356
0 commit comments