harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 46880c8c283eaa64abfb36f1dc24a7ffc74790a6
parent 374ac9b95c7ed09b9652469d4cd3b8e848ffc941
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri, 22 Jan 2021 11:58:33 -0500

mod: print errored path in lookup failure

Diffstat:
Msrc/mod.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mod.c b/src/mod.c @@ -52,8 +52,8 @@ module_resolve(struct identifier *ident, struct type_store *store) const char *path = open_typedefs(ident); FILE *f = fopen(path, "r"); if (!f) { - fprintf(stderr, "Could not open module '%s' for reading: %s\n", - identifier_unparse(ident), + fprintf(stderr, "Could not open module '%s' for reading from %s: %s\n", + identifier_unparse(ident), path, strerror(errno)); exit(1); }