We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccaa1ac commit 8027f84Copy full SHA for 8027f84
src/util/ui_message.cpp
@@ -12,6 +12,7 @@ Author: Daniel Kroening, [email protected]
12
#include <iostream>
13
14
#include "cmdline.h"
15
+#include "convert_xml_json.h"
16
#include "json_irep.h"
17
#include "json_stream.h"
18
#include "make_unique.h"
@@ -166,16 +167,22 @@ void ui_message_handlert::print(
166
167
switch(get_ui())
168
{
169
case uit::PLAIN:
- INVARIANT(false, "Cannot print xml data on PLAIN UI");
170
+ {
171
+ print(level, xml_to_pretty(data));
172
break;
173
+ }
174
case uit::XML_UI:
175
176
out << data << '\n';
177
flush(level);
178
179
180
case uit::JSON_UI:
- INVARIANT(false, "Cannot print xml data on JSON UI");
181
182
+ print(level, from_xml(data));
183
184
}
185
186
187
188
0 commit comments