diff options
author | Benoit Daloze <eregontp@gmail.com> | 2023-01-05 18:41:57 +0100 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2023-01-05 19:05:03 +0100 |
commit | 03dd37775afb40eef392ae2920d728235af302c8 (patch) | |
tree | bb8a7876803454352664a93b5db71cfc3c74df23 /pack.c | |
parent | 358f325bf8cd6fca3da1343e9606176cad2c70bd (diff) |
Raise an ArgumentError for unknown pack/unpack directive
* [Bug #19150]
Diffstat (limited to 'pack.c')
-rw-r--r-- | pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -167,7 +167,7 @@ unknown_directive(const char *mode, char type, VALUE fmt) snprintf(unknown, sizeof(unknown), "\\x%.2x", type & 0xff); } fmt = rb_str_quote_unprintable(fmt); - rb_warn("unknown %s directive '%s' in '%"PRIsVALUE"'", + rb_raise(rb_eArgError, "unknown %s directive '%s' in '%"PRIsVALUE"'", mode, unknown, fmt); } |