More informative error handling, more uniform sqlite column parsing
This commit is contained in:
parent
eb8a054d5c
commit
0d87993c41
2 changed files with 26 additions and 16 deletions
|
@ -9,7 +9,7 @@ use {
|
|||
libadwaita :: { * , prelude :: * } ,
|
||||
} ;
|
||||
|
||||
use crate :: { error :: * , persistence :: * , ui :: * } ;
|
||||
use crate :: { error :: { * , ZoodexError :: * } , persistence :: * , ui :: * } ;
|
||||
|
||||
|
||||
|
||||
|
@ -33,6 +33,9 @@ fn on_activate ( app : & Application ) {
|
|||
|
||||
Ok (())
|
||||
} , |_| () , |error| {
|
||||
match error {
|
||||
CollectionFileError => eprintln ! ("Could not open collection file") ,
|
||||
} ;
|
||||
ui . close_window () ;
|
||||
} ) . await ;
|
||||
} ) ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue