diff options
Diffstat (limited to 'yarp/diagnostic.c')
-rw-r--r-- | yarp/diagnostic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yarp/diagnostic.c b/yarp/diagnostic.c index 9bbc30edee..34da3f97a5 100644 --- a/yarp/diagnostic.c +++ b/yarp/diagnostic.c @@ -85,7 +85,7 @@ static const char* const diagnostic_messages[YP_DIAGNOSTIC_ID_LEN] = { [YP_ERR_CANNOT_PARSE_STRING_PART] = "Cannot parse the string part", [YP_ERR_CASE_EXPRESSION_AFTER_CASE] = "Expected an expression after `case`", [YP_ERR_CASE_EXPRESSION_AFTER_WHEN] = "Expected an expression after `when`", - [YP_ERR_CASE_LONELY_ELSE] = "Unexpected `else` in `case` statement; a `when` clause must precede `else`", + [YP_ERR_CASE_MISSING_CONDITIONS] = "Expected a `when` or `in` clause after `case`", [YP_ERR_CASE_TERM] = "Expected an `end` to close the `case` statement", [YP_ERR_CLASS_IN_METHOD] = "Unexpected class definition in a method body", [YP_ERR_CLASS_NAME] = "Expected a constant name after `class`", |