1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +00:00

ar65/LibClose: Include filename in error messages

```
ar65: Error: Problem deleting temporary library file '../lib/apple2enh.lib.temp': No such file or directory
```
is the error I'm getting with `make -j 19` when trying
to debug #1080.
This commit is contained in:
Jesse Rosenstock 2020-07-09 21:18:42 +02:00 committed by Oliver Schmidt
parent 579b50f0c5
commit f5afc75cbd

View File

@ -399,9 +399,11 @@ void LibClose (void)
Error ("Problem closing '%s': %s", LibName, strerror (errno));
}
if (NewLib && fclose (NewLib) != 0) {
Error ("Problem closing temporary library file: %s", strerror (errno));
Error ("Problem closing temporary library file '%s': %s",
NewLibName, strerror (errno));
}
if (NewLibName && remove (NewLibName) != 0) {
Error ("Problem deleting temporary library file: %s", strerror (errno));
Error ("Problem deleting temporary library file '%s': %s",
NewLibName, strerror (errno));
}
}