summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/lockfile.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/lockfile.ml b/lib/lockfile.ml
index cbafc27..e7a2621 100644
--- a/lib/lockfile.ml
+++ b/lib/lockfile.ml
@@ -161,7 +161,8 @@ module Darcs = struct
| `Assumed (Some actx) -> encode_tag 0 string actx
| `Stated sctx -> encode_tag 1 string sctx
(* We can’t lock without a stable reference *)
- | `Assumed None -> failwith "Missing assumed Darcs context";
+ | `Assumed None ->
+ Error.msgf Meta.none "Darcs context cannot be None when locking"
and dec = function
| [|tag; value|] ->
begin