Improved error message
This commit is contained in:
parent
2bc8e47843
commit
50bdbb41a7
@ -268,7 +268,9 @@ impl fmt::Display for AppendEdgeError {
|
|||||||
impl Error for AppendEdgeError {
|
impl Error for AppendEdgeError {
|
||||||
fn description(&self) -> &'static str {
|
fn description(&self) -> &'static str {
|
||||||
match *self {
|
match *self {
|
||||||
AppendEdgeError::GraphMismatch => "Underlying graph mismatch",
|
AppendEdgeError::GraphMismatch => {
|
||||||
|
"Underlying graph mismatch (cannot create an edge between vertices in two different graphs)"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user