aboutsummaryrefslogtreecommitdiff
path: root/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-05 15:47:00 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-05 15:47:00 -0400
commitdf61a0805fa5a54896c93200832165508e5badfa (patch)
treecea44cbc98b60b308e74e612bbadc8fbe938e52e /tomo.c
parent3444d1652d495def1195ab1d9c1fba4543f2af86 (diff)
Correctly resolve '../' paths
Diffstat (limited to 'tomo.c')
-rw-r--r--tomo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tomo.c b/tomo.c
index 92815075..b95fa9a4 100644
--- a/tomo.c
+++ b/tomo.c
@@ -326,7 +326,7 @@ void build_file_dependency_graph(const char *filename, Table_t *to_compile, Tabl
case USE_LOCAL: {
const char *path = use->path;
path = resolve_path(path, filename, "");
- if (!path) errx(1, "Couldn't resolve import: %s", use->path);
+ if (!path) errx(1, "Couldn't resolve import: %s relative to: %s", use->path, filename);
if (Table$str_get(*to_compile, path))
continue;
build_file_dependency_graph(path, to_compile, to_link);