Display the name of the lua files which can't be loaded.
This commit is contained in:
parent
fa48b22bd4
commit
895d83c3f8
1 changed files with 2 additions and 1 deletions
|
@ -193,7 +193,8 @@ int LuaLoadFile(const char* file)
|
|||
CLFile* fp;
|
||||
|
||||
if (!(fp = CLopen(file, CL_OPEN_READ))) {
|
||||
perror("Can't open file");
|
||||
fprintf(stderr,"Can't open file '%s': %s\n",
|
||||
file, strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue