From f5afc75cbdb5cba180467185f1d8a45de6e3a005 Mon Sep 17 00:00:00 2001 From: Jesse Rosenstock Date: Thu, 9 Jul 2020 21:18:42 +0200 Subject: [PATCH] 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. --- src/ar65/library.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ar65/library.c b/src/ar65/library.c index 4d18168d8..08fdeb563 100644 --- a/src/ar65/library.c +++ b/src/ar65/library.c @@ -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)); } }