diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-01 06:54:27 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-01 06:54:27 -0700 |
commit | e0eb227ab7ae4f911dfce45c6513db3f2ebe0607 (patch) | |
tree | 88c49dcc6e16f15d3ef71cbcb0a0f4b812e2a52d /lib.c | |
parent | 1ca63aa729fa420316defc4771deb3695fef5755 (diff) | |
download | txr-e0eb227ab7ae4f911dfce45c6513db3f2ebe0607.tar.gz txr-e0eb227ab7ae4f911dfce45c6513db3f2ebe0607.tar.bz2 txr-e0eb227ab7ae4f911dfce45c6513db3f2ebe0607.zip |
Improve error for uncallable object.
* lib.c (generic_funcall): If the object is not callable, the overall
message now will be "object <whatever> called as function: object is not
callable".
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4379,7 +4379,7 @@ val generic_funcall(val fun, struct args *args_in) } /* fallthrough */ default: - callerror(fun, lit("is not callable")); + callerror(fun, lit("object is not callable")); } variadic = fun->f.variadic; |