throw exception when attempting to post query as goal (#329)

This commit is contained in:
Mark Thom
2020-04-12 12:07:41 -06:00
parent 97d8d07947
commit 5e81fb4754
3 changed files with 31 additions and 8 deletions

View File

@@ -1290,7 +1290,7 @@ impl<'a> TopLevelBatchWorker<'a> {
TopLevel::Declaration(decl) =>
return Ok(Some(decl)),
TopLevel::Query(_) =>
return Err(SessionError::NamelessEntry),
return Err(SessionError::QueryCannotBePostedAsGoal),
}
}