diff options
| -rw-r--r-- | lptree.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -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 | ||
