incr.comp.: Improve error message for unknown fingerprint.

This commit is contained in:
Michael Woerister 2017-10-27 18:56:29 +02:00
parent 6c1529b34f
commit 6a3659427e

View File

@ -328,7 +328,12 @@ impl DepGraph {
}
pub fn fingerprint_of(&self, dep_node: &DepNode) -> Fingerprint {
self.fingerprints.borrow()[dep_node]
match self.fingerprints.borrow().get(dep_node) {
Some(&fingerprint) => fingerprint,
None => {
bug!("Could not find current fingerprint for {:?}", dep_node)
}
}
}
pub fn prev_fingerprint_of(&self, dep_node: &DepNode) -> Option<Fingerprint> {