twn_loop.c: better log for /twn.toml misaccess
This commit is contained in:
parent
5e10087b35
commit
7d92eff691
@ -305,7 +305,7 @@ static bool initialize(void) {
|
||||
{
|
||||
char *config_file = file_to_str("/twn.toml");
|
||||
if (config_file == NULL) {
|
||||
CRY_PHYSFS("Configuration file loading failed");
|
||||
CRY("Configuration file loading failed", "Cannot access /twn.toml");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
@ -314,7 +314,7 @@ static bool initialize(void) {
|
||||
SDL_free(config_file);
|
||||
|
||||
if (ctx.config_table == NULL) {
|
||||
CRY("Configuration file loading failed", errbuf);
|
||||
CRY("Configuration file pasing failed", errbuf);
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user