diff options
Diffstat (limited to 'src/parser.rs')
| -rw-r--r-- | src/parser.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/parser.rs b/src/parser.rs index c88d751..ba58b72 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -190,7 +190,9 @@ pub fn parse_start_type(st: &str) -> Result<StartType, String> { if st.len() < 4 { return Err(String::from( - "Expecting CPSn as alternatives failed to match, but variant string was too short.", + "Expecting CPSn as + alternatives failed to match, but variant string was too + short.", )); } else { if st[..3] == String::from("CPS") { @@ -198,7 +200,8 @@ pub fn parse_start_type(st: &str) -> Result<StartType, String> { match num { Err(e) => { return Err(format!( - "Failed to parse number, {}. CPS must be followed by a positive integer < 256, e.g., CPS2.", + "Failed to parse number, {}. CPS must be + immediately followed by a positive integer < 256, e.g., CPS1.", e.to_string() )) } |
