Skip to content

Commit 9a1458a

Browse files
committed
[lua] add vr.error(...) (same as vr.print())
Change-Id: I2a88925ccc206db08818c8e4810b51ab2a97a49c
1 parent 8d9c959 commit 9a1458a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/core_lua.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
236236
Methods:
237237
238-
* `print(...)`: print parameters via lua `tostring` method as ERROR in Virtual Request context
238+
* `error(...)` and `print(...)`: print parameters via lua `tostring` method as ERROR in Virtual Request context
239239
* `warning(...)`: print parameters via lua `tostring` method as WARNING in Virtual Request context
240240
* `info(...)`: print parameters via lua `tostring` method as INFO in Virtual Request context
241241
* `debug(...)`: print parameters via lua `tostring` method as DEBUG in Virtual Request context

src/main/virtualrequest_lua.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ static const luaL_Reg vrequest_mt[] = {
319319
{ "__newindex", lua_vrequest_newindex },
320320

321321
{ "print", lua_vrequest_error },
322+
{ "error", lua_vrequest_error },
322323
{ "warning", lua_vrequest_warning },
323324
{ "info", lua_vrequest_info },
324325
{ "debug", lua_vrequest_debug },

0 commit comments

Comments
 (0)