summaryrefslogtreecommitdiff
path: root/typing
diff options
context:
space:
mode:
authorJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2011-10-21 07:56:18 +0000
committerJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2011-10-21 07:56:18 +0000
commit3a5b3e6f9b53bd5246b0b76fef000434bae23634 (patch)
tree27720a202b68042de5a81d90f81f678191135c9a /typing
parent8f14aadd02b5db0cbe3007a2a912549f7826580e (diff)
downloadocaml-3a5b3e6f9b53bd5246b0b76fef000434bae23634.tar.gz
allow breaking line for locations inside error messages
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11230 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'typing')
-rw-r--r--typing/includemod.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/typing/includemod.ml b/typing/includemod.ml
index 333fc6d6fc..e95b07ffaa 100644
--- a/typing/includemod.ml
+++ b/typing/includemod.ml
@@ -339,7 +339,7 @@ open Printtyp
let show_loc msg ppf loc =
let pos = loc.Location.loc_start in
if List.mem pos.Lexing.pos_fname [""; "_none_"] then ()
- else fprintf ppf "@\n@[%a: %s@]" Location.print_loc loc msg
+ else fprintf ppf "@\n@[<2>%a:@ %s@]" Location.print_loc loc msg
let show_locs ppf (loc1, loc2) =
show_loc "Expected declaration" ppf loc2;