Improved error message

This commit is contained in:
Stu Black 2019-07-22 12:02:50 -04:00
parent 2bc8e47843
commit 50bdbb41a7

View File

@ -268,7 +268,9 @@ impl fmt::Display for AppendEdgeError {
impl Error for AppendEdgeError {
fn description(&self) -> &'static str {
match *self {
AppendEdgeError::GraphMismatch => "Underlying graph mismatch",
AppendEdgeError::GraphMismatch => {
"Underlying graph mismatch (cannot create an edge between vertices in two different graphs)"
}
}
}
}