Skip to content

Commit

Permalink
fix: can't return luaL_error in check_open_window()
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasgeiler committed Oct 13, 2024
1 parent 24d19a1 commit 31f30a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ static int lfenster_rgb(lua_State *L) {
static window *check_open_window(lua_State *L) {
window *p_window = check_window(L);
if (is_window_closed(p_window)) {
return luaL_error(L, "attempt to use a closed window");
luaL_error(L, "attempt to use a closed window");
}
return p_window;
}
Expand Down

0 comments on commit 31f30a8

Please sign in to comment.