change wording of QueryCannotBePostedAsFact to QueryCannotBeDefinedAsFact, remove old commented code in read.rs

This commit is contained in:
Mark Thom
2020-04-12 16:01:53 -06:00
parent 4ddc4ebf46
commit 7621155a89
4 changed files with 7 additions and 37 deletions

View File

@@ -319,8 +319,8 @@ impl fmt::Display for SessionError {
&SessionError::ParserError(ref e) => {
write!(f, "syntax_error({})", e.as_str())
}
&SessionError::QueryCannotBePostedAsGoal => {
write!(f, "query forms cannot be posted as goals.")
&SessionError::QueryCannotBeDefinedAsFact => {
write!(f, "queries cannot be defined as facts.")
}
}
}