summaryrefslogtreecommitdiff
path: root/src/printer/ast/ast_printer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/printer/ast/ast_printer.cpp')
-rw-r--r--src/printer/ast/ast_printer.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/printer/ast/ast_printer.cpp b/src/printer/ast/ast_printer.cpp
index 94ca46257..c24ed8372 100644
--- a/src/printer/ast/ast_printer.cpp
+++ b/src/printer/ast/ast_printer.cpp
@@ -179,7 +179,8 @@ void AstPrinter::toStream(std::ostream& out, const CommandStatus* s) const throw
if(tryToStream<CommandSuccess>(out, s) ||
tryToStream<CommandFailure>(out, s) ||
- tryToStream<CommandUnsupported>(out, s)) {
+ tryToStream<CommandUnsupported>(out, s) ||
+ tryToStream<CommandInterrupted>(out, s)) {
return;
}
@@ -373,6 +374,10 @@ static void toStream(std::ostream& out, const CommandSuccess* s) throw() {
}
}
+static void toStream(std::ostream& out, const CommandInterrupted* s) throw() {
+ out << "INTERRUPTED" << endl;
+}
+
static void toStream(std::ostream& out, const CommandUnsupported* s) throw() {
out << "UNSUPPORTED" << endl;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback