diff options
author | Emilio Jesus Gallego Arias <e+git@x80.org> | 2016-06-25 16:14:23 +0200 |
---|---|---|
committer | Emilio Jesus Gallego Arias <e+git@x80.org> | 2016-06-25 17:17:45 +0200 |
commit | 1053a1d4e8112ae78af86024073cf03c072d1a7c (patch) | |
tree | 968d9890732461ae2264ede479d22d64148078b8 /lib | |
parent | 893ea5219eb74aedf93bd53f23b5e050fb9acbf6 (diff) |
[feedback] Remove `ErrorMsg` in favor of `Message Error`.
The ErrorMsg datatype was introduced to allow locations in messages,
however, it was redundant with error and used only in one place.
We remove it in favor of a more uniform treatment of messages with
location. This patch also removes the use of `Loc.ghost` in one place.
Lightly tested.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/feedback.ml | 1 | ||||
-rw-r--r-- | lib/feedback.mli | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/feedback.ml b/lib/feedback.ml index c2b512e99..bedbe226c 100644 --- a/lib/feedback.ml +++ b/lib/feedback.ml @@ -24,7 +24,6 @@ type feedback_content = | Processed | Incomplete | Complete - | ErrorMsg of Loc.t * string | ProcessingIn of string | InProgress of int | WorkerStatus of string * string diff --git a/lib/feedback.mli b/lib/feedback.mli index 36fb3867f..d72524e65 100644 --- a/lib/feedback.mli +++ b/lib/feedback.mli @@ -31,7 +31,6 @@ type feedback_content = | Processed | Incomplete | Complete - | ErrorMsg of Loc.t * string (* STM optional data *) | ProcessingIn of string | InProgress of int @@ -45,7 +44,7 @@ type feedback_content = | FileLoaded of string * string (* Extra metadata *) | Custom of Loc.t * string * xml - (* Old generic messages *) + (* Generic messages *) | Message of level * Loc.t option * Richpp.richpp type feedback = { |