incr.comp.: Improve error message for unknown fingerprint.
This commit is contained in:
parent
6c1529b34f
commit
6a3659427e
@ -328,7 +328,12 @@ impl DepGraph {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn fingerprint_of(&self, dep_node: &DepNode) -> Fingerprint {
|
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> {
|
pub fn prev_fingerprint_of(&self, dep_node: &DepNode) -> Option<Fingerprint> {
|
||||||
|
Loading…
Reference in New Issue
Block a user