# HG changeset patch # User paulson # Date 1743121578 0 # Node ID 35a219e372b02f8c9e37a1f88db6b164a27bba3f # Parent fedac12c7e0e0504c0aa5cfc5f034efb5f7d0f5a# Parent e3a0128f4905959a24860af915295309eab6c438 merged diff -r e3a0128f4905 -r 35a219e372b0 src/Pure/Build/build_manager.scala --- a/src/Pure/Build/build_manager.scala Fri Mar 28 00:26:10 2025 +0000 +++ b/src/Pure/Build/build_manager.scala Fri Mar 28 00:26:18 2025 +0000 @@ -871,7 +871,10 @@ val rsync_context = Rsync.Context() private def sync(repository: Mercurial.Repository, rev: String, target: Path): String = { - repository.pull() + val pull_result = Exn.capture(repository.pull()) + if (Exn.is_exn(pull_result)) { + echo_error_message("Could not read from repository: " + Exn.the_exn(pull_result).getMessage) + } if (rev.nonEmpty) repository.sync(rsync_context, target, rev = rev)