Skip to content

Commit

Permalink
Enhanced the error message for "luaL_dofile(L, BOOTFILE)"
Browse files Browse the repository at this point in the history
  • Loading branch information
firew0lf committed Aug 19, 2015
1 parent b772a42 commit df4ce7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/main.c
Expand Up @@ -12,7 +12,7 @@ int load_ctr_lib(lua_State *L);
void unload_font_lib();

// Display an error
void error(char *error) {
void error(const char *error) {
gfxInitDefault();

consoleInit(GFX_TOP, NULL);
Expand Down Expand Up @@ -46,7 +46,7 @@ int main() {
load_ctr_lib(L);

// Do the actual thing
if (luaL_dofile(L, BOOT_FILE)) error("Can't open the boot file "BOOT_FILE);
if (luaL_dofile(L, BOOT_FILE)) error(luaL_checkstring(L, -1));

// Unload current font
unload_font_lib();
Expand Down

0 comments on commit df4ce7b

Please sign in to comment.