summaryrefslogtreecommitdiff
path: root/toplevel/locality.ml
diff options
context:
space:
mode:
authorGravatar Enrico Tassi <gareuselesinge@debian.org>2015-11-13 11:43:34 +0100
committerGravatar Enrico Tassi <gareuselesinge@debian.org>2015-11-13 11:43:34 +0100
commit4e76c4f01b69b77f40686e06c4544aa156efaa5a (patch)
treeaefad2e3de35f75c46729f9310d33b56d3821961 /toplevel/locality.ml
parent64fa31c7ee53e79b112507fb2eea27dc7648328d (diff)
parent91dbeab8eef959c3f64960909ca69d4e68c8198d (diff)
Imported Upstream version 8.5~beta3+dfsg
Diffstat (limited to 'toplevel/locality.ml')
-rw-r--r--toplevel/locality.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/toplevel/locality.ml b/toplevel/locality.ml
index f711dad9..1145a20b 100644
--- a/toplevel/locality.ml
+++ b/toplevel/locality.ml
@@ -6,6 +6,8 @@
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
+open Pp
+
(** * Managing locality *)
let local_of_bool = function
@@ -16,7 +18,8 @@ let check_locality locality_flag =
match locality_flag with
| Some b ->
let s = if b then "Local" else "Global" in
- Errors.error ("This command does not support the \""^s^"\" prefix.")
+ Errors.errorlabstrm "Locality.check_locality"
+ (str "This command does not support the \"" ++ str s ++ str "\" prefix.")
| None -> ()
(** Extracting the locality flag *)