twn_loop.c: better log for /twn.toml misaccess

This commit is contained in:
veclav talica 2024-10-07 20:57:02 +03:00
parent 5e10087b35
commit 7d92eff691

View File

@ -305,7 +305,7 @@ static bool initialize(void) {
{ {
char *config_file = file_to_str("/twn.toml"); char *config_file = file_to_str("/twn.toml");
if (config_file == NULL) { if (config_file == NULL) {
CRY_PHYSFS("Configuration file loading failed"); CRY("Configuration file loading failed", "Cannot access /twn.toml");
goto fail; goto fail;
} }
@ -314,7 +314,7 @@ static bool initialize(void) {
SDL_free(config_file); SDL_free(config_file);
if (ctx.config_table == NULL) { if (ctx.config_table == NULL) {
CRY("Configuration file loading failed", errbuf); CRY("Configuration file pasing failed", errbuf);
goto fail; goto fail;
} }
} }