diff --git a/liblangutil/SemVerHandler.cpp b/liblangutil/SemVerHandler.cpp index 1d57e4dd5..83f526113 100644 --- a/liblangutil/SemVerHandler.cpp +++ b/liblangutil/SemVerHandler.cpp @@ -208,10 +208,11 @@ void SemVerMatchExpressionParser::parseMatchExpression() range.components.push_back(parseMatchComponent()); if (currentToken() == Token::Sub) { - if(containPrefixingToken()) { + if (containPrefixingToken()) + { solThrow( SemVerError, - "You cannot use operators (<, <=, >=, >, ^) with verison ranges (-)." + "You cannot use operators (<, <=, >=, >, ^) with version ranges (-)." ); }