Permalink
Browse files

[enhance] slicer,sliced_expr,message: make a warning message more exp…

…licit about slicer_expr against client/server directives
  • Loading branch information...
1 parent 1381c03 commit a472b0570f819ff069341a784d42bfa7d7f0bf13 @OpaOnWindowsNow OpaOnWindowsNow committed Apr 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 qmlslicer/qmlSimpleSlicer.ml
@@ -964,14 +964,14 @@ let look_at_user_annotation env pp_pos node annot =
(match on_the_client with
| `expression -> ()
| `alias | `insert_server_value ->
- OManager.warning ~wclass:WClass.sliced_expr "@[<v>%a@]@\n@[<2> %s contains a 'sliced_expr' but the client code will not be executed.@]"
+ OManager.warning ~wclass:WClass.sliced_expr "@[<v>%a@]@\n@[<2> The value '%s' contains a 'sliced_expr' but the client code will not be executed.@]"
pp_pos node
(Ident.original_name node.ident)
);
(match on_the_server with
| `expression -> ()
| `alias ->
- OManager.warning ~wclass:WClass.sliced_expr "@[<v>%a@]@\n@[<2> %s contains a 'sliced_expr' but the server code will not be executed.@]"
+ OManager.warning ~wclass:WClass.sliced_expr "@[<v>%a@]@\n@[<2> The value '%s' contains a 'sliced_expr' but the server code will not be executed.@]"
pp_pos node
(Ident.original_name node.ident))
);

0 comments on commit a472b05

Please sign in to comment.