| 428 | } |
| 429 | |
| 430 | int RequestData::error(lua_State *L) |
| 431 | { |
| 432 | RequestData *d = checkItem(L, 1); |
| 433 | if (!d || !d->reply) |
| 434 | { |
| 435 | lua_pushnil(L); |
| 436 | return 1; |
| 437 | } |
| 438 | const QString err = d->reply->errorString(); |
| 439 | lua_pushstring(L, err.toUtf8().constData()); |
| 440 | return 1; |
| 441 | } |
| 442 | |
| 443 | int RequestData::extra(lua_State *L) |
| 444 | { |
no test coverage detected