mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
ctree: return -1 instead of NULL for contains error
This commit is contained in:
parent
71cbc6ab90
commit
afe0a91adc
@ -781,7 +781,7 @@ static int treemanifest_contains(py_treemanifest *self, PyObject *key) {
|
||||
return 1;
|
||||
}
|
||||
} catch (const pyexception &ex) {
|
||||
return NULL;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user