Slightly more helpful error message for "null lib handle"

I changed the error message to also suggest checking the -L flag
when this happens.
This commit is contained in:
Tim Chevalier 2011-04-27 14:41:54 -07:00 committed by Graydon Hoare
parent 93845d0bae
commit 54aff74af0

View File

@ -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);
}
}