use new error formatting
This commit is contained in:
parent
d340bd1044
commit
e48ea84fbd
|
@ -7,6 +7,6 @@ edition = "2018"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
bitsy-parser = "^0.72.0"
|
||||
bitsy-parser = "^0.72.1"
|
||||
gio = "^0"
|
||||
gtk = "^0"
|
||||
|
|
|
@ -58,7 +58,7 @@ fn parse_or_error(game_data: String, label: &str) -> Result<Game, ()> {
|
|||
Ok(main.unwrap())
|
||||
} else {
|
||||
error_popup(&format!(
|
||||
"Couldn't parse {} game data: {:?}",
|
||||
"Couldn't parse {} game data.\n\n{}",
|
||||
label,
|
||||
main.unwrap_err()));
|
||||
Err(())
|
||||
|
@ -101,7 +101,7 @@ fn build_ui(application: >k::Application) {
|
|||
if main.is_ok() && additional.is_ok() {
|
||||
let mut main = main.unwrap();
|
||||
let additional = additional.unwrap();
|
||||
main.merge(additional);
|
||||
main.merge(&additional);
|
||||
|
||||
buffer_output.set_text(&main.to_string());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue