aboutsummaryrefslogtreecommitdiff
path: root/lptree.c
diff options
context:
space:
mode:
Diffstat (limited to 'lptree.c')
-rw-r--r--lptree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lptree.c b/lptree.c
index 30cef67..2318153 100644
--- a/lptree.c
+++ b/lptree.c
@@ -813,7 +813,9 @@ static int lp_divcapture (lua_State *L) {
813 tree->key = n; 813 tree->key = n;
814 return 1; 814 return 1;
815 } 815 }
816 default: return luaL_argerror(L, 2, "invalid replacement value"); 816 default:
817 return luaL_error(L, "unexpected %s as 2nd operand to LPeg '/'",
818 luaL_typename(L, 2));
817 } 819 }
818} 820}
819 821