aboutsummaryrefslogtreecommitdiffstats
path: root/pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pack.c b/pack.c
index 78789889de..4a2d246174 100644
--- a/pack.c
+++ b/pack.c
@@ -1026,6 +1026,8 @@ pack_pack(VALUE ary, VALUE fmt)
break;
default:
+ rb_warning("unknown pack directive '%c' in '%s'",
+ type, RSTRING_PTR(fmt));
break;
}
}
@@ -2143,6 +2145,8 @@ pack_unpack(VALUE str, VALUE fmt)
break;
default:
+ rb_warning("unknown unpack directive '%c' in '%s'",
+ type, RSTRING_PTR(fmt));
break;
}
}