summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAina Niemetz <aina.niemetz@gmail.com>2019-09-16 08:53:34 -0700
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-09-16 10:53:34 -0500
commit5f6bcbcebb314f0a4333161d0e69ea31b4563101 (patch)
treecd8cc39a12ec73f31623ae460dc64e1b3e825e1c /src
parenta90b9e2b70be427d1380cb5e65dc33c86e4a63b2 (diff)
parser: Improve error message for unrecognized input file format. (#3285)
Diffstat (limited to 'src')
-rw-r--r--src/parser/antlr_input.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parser/antlr_input.cpp b/src/parser/antlr_input.cpp
index 77efff951..3157ab6e5 100644
--- a/src/parser/antlr_input.cpp
+++ b/src/parser/antlr_input.cpp
@@ -262,8 +262,7 @@ AntlrInput* AntlrInput::newInput(InputLanguage lang, AntlrInputStream& inputStre
else
{
std::stringstream ss;
- ss << "internal error: unhandled language " << lang
- << " in AntlrInput::newInput";
+ ss << "unable to detect input file format, try --lang ";
throw InputStreamException(ss.str());
}
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback