aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Chevalier <[email protected]>2011-04-27 14:41:54 -0700
committerGraydon Hoare <[email protected]>2011-04-28 13:26:19 -0700
commit54aff74af093cb15310283e1edaa1693f07b525f (patch)
tree669f9f06347a9a22f34b38f2ba2613f665c5a567 /src
parentFix nested patterns in rustboot (diff)
downloadrust-54aff74af093cb15310283e1edaa1693f07b525f.tar.xz
rust-54aff74af093cb15310283e1edaa1693f07b525f.zip
Slightly more helpful error message for "null lib handle"
I changed the error message to also suggest checking the -L flag when this happens.
Diffstat (limited to 'src')
-rw-r--r--src/rt/rust_crate_cache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rt/rust_crate_cache.cpp b/src/rt/rust_crate_cache.cpp
index 3fdb33b9..3ab4a822 100644
--- a/src/rt/rust_crate_cache.cpp
+++ b/src/rt/rust_crate_cache.cpp
@@ -49,7 +49,8 @@ rust_crate_cache::c_sym::c_sym(rust_dom *dom, lib *library, char const *name)
DLOG(dom, cache, "resolved symbol '%s' to 0x%" PRIxPTR,
name, val);
} else {
- DLOG_ERR(dom, cache, "unresolved symbol '%s', null lib handle", name);
+ DLOG_ERR(dom, cache, "unresolved symbol '%s', null lib handle\n"
+ "(did you omit a -L flag?)", name);
}
}