about summary refs log tree commit diff
path: root/src/rt/rust_crate_cache.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2011-04-27 14:41:54 -0700
committerGraydon Hoare <graydon@mozilla.com>2011-04-28 13:26:19 -0700
commit54aff74af093cb15310283e1edaa1693f07b525f (patch)
tree669f9f06347a9a22f34b38f2ba2613f665c5a567 /src/rt/rust_crate_cache.cpp
parent93845d0bae9258e6617c79474cd4265fcafc133c (diff)
downloadrust-54aff74af093cb15310283e1edaa1693f07b525f.tar.gz
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/rt/rust_crate_cache.cpp')
-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 3fdb33b9896..3ab4a822e2e 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);
     }
 }