From df0cfc1e19ed220e15bf2c088be21a2ebb7aaad3 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 9 Nov 1994 16:12:42 -0200 Subject: calls lua_reportbug instead of lua_error, in default fallbacks --- fallback.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fallback.c b/fallback.c index 68d052b3..c8bd9736 100644 --- a/fallback.c +++ b/fallback.c @@ -3,13 +3,14 @@ ** TecCGraf - PUC-Rio */ -char *rcs_fallback="$Id: fallback.c,v 1.1 1994/11/07 15:20:56 roberto Exp roberto $"; +char *rcs_fallback="$Id: fallback.c,v 1.2 1994/11/08 19:56:39 roberto Exp roberto $"; #include #include #include "fallback.h" #include "opcode.h" +#include "inout.h" #include "lua.h" @@ -31,24 +32,24 @@ void luaI_indexFB (void) void luaI_gettableFB (void) { - lua_error("indexed expression not a table"); + lua_reportbug("indexed expression not a table"); } void luaI_arithFB (void) { - lua_error("unexpected type at conversion to number"); + lua_reportbug("unexpected type at conversion to number"); } void luaI_concatFB (void) { - lua_error("unexpected type at conversion to string"); + lua_reportbug("unexpected type at conversion to string"); } void luaI_orderFB (void) { - lua_error("unexpected type at comparison"); + lua_reportbug("unexpected type at comparison"); } -- cgit v1.2.3-55-g6feb