Skip to content

Commit

Permalink
don't return model if error in parsing (#894)
Browse files Browse the repository at this point in the history
don't return model if error
  • Loading branch information
eric-capeprivacy authored Feb 28, 2022
1 parent 07d41db commit 1eecf57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion moose/src/textual/parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ pub fn parallel_parse_computation(source: &str, chunks: usize) -> anyhow::Result
.map(|s| {
parse_operations::<VerboseError<&str>>(s)
.map(|t| t.1) // Dropping the remainder
.map_err(|e| friendly_error("Failed to parse computation", source, e))
.map_err(|e| {
friendly_error("Failed to parse computation", "base64 encoded model", e)
})
})
.collect();
let mut operations = Vec::new();
Expand Down

0 comments on commit 1eecf57

Please sign in to comment.