diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-04-01 14:44:20 -0400 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-04-01 19:28:04 +0000 |
| commit | a885d597d514693c10b12cbacbd7cc9d8ecf4986 (patch) | |
| tree | ab65d3672f43919f402e3b42da8bf63dd5062ea9 | |
| parent | fee70c1ed71dd0db4ce9a2226dc5f4845e0a0c48 (diff) | |
[ruby/prism] Match error message for multiple blocks given
https://github.com/ruby/prism/commit/6b594d9d42
| -rw-r--r-- | prism/templates/src/diagnostic.c.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prism/templates/src/diagnostic.c.erb b/prism/templates/src/diagnostic.c.erb index a742c62e8e..7a73187325 100644 --- a/prism/templates/src/diagnostic.c.erb +++ b/prism/templates/src/diagnostic.c.erb @@ -92,7 +92,7 @@ static const pm_diagnostic_data_t diagnostic_messages[PM_DIAGNOSTIC_ID_MAX] = { [PM_ERR_ARGUMENT_AFTER_FORWARDING_ELLIPSES] = { "unexpected argument after `...`", PM_ERROR_LEVEL_SYNTAX }, [PM_ERR_ARGUMENT_BARE_HASH] = { "unexpected bare hash argument", PM_ERROR_LEVEL_SYNTAX }, [PM_ERR_ARGUMENT_BLOCK_FORWARDING] = { "both a block argument and a forwarding argument; only one block is allowed", PM_ERROR_LEVEL_SYNTAX }, - [PM_ERR_ARGUMENT_BLOCK_MULTI] = { "multiple block arguments; only one block is allowed", PM_ERROR_LEVEL_SYNTAX }, + [PM_ERR_ARGUMENT_BLOCK_MULTI] = { "both block arg and actual block given; only one block is allowed", PM_ERROR_LEVEL_SYNTAX }, [PM_ERR_ARGUMENT_FORMAL_CLASS] = { "invalid formal argument; formal argument cannot be a class variable", PM_ERROR_LEVEL_SYNTAX }, [PM_ERR_ARGUMENT_FORMAL_CONSTANT] = { "invalid formal argument; formal argument cannot be a constant", PM_ERROR_LEVEL_SYNTAX }, [PM_ERR_ARGUMENT_FORMAL_GLOBAL] = { "invalid formal argument; formal argument cannot be a global variable", PM_ERROR_LEVEL_SYNTAX }, |
