diff options
author | Thomas White <taw@physics.org> | 2021-05-17 11:27:35 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-05-17 11:27:35 +0200 |
commit | 191c653da29f5bd51251256d056239a3628daf5d (patch) | |
tree | a64949424dc999038948a80ceb26c997876272f3 /src/crystfel_gui.c | |
parent | 680fa5f16ed2ff8a70fcb44e9920721287047f55 (diff) |
GUI: Improve error handling for default_project
Diffstat (limited to 'src/crystfel_gui.c')
-rw-r--r-- | src/crystfel_gui.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c index 1246924b..28661064 100644 --- a/src/crystfel_gui.c +++ b/src/crystfel_gui.c @@ -771,7 +771,10 @@ int main(int argc, char *argv[]) gtk_init(&argc, &argv); - default_project(&proj); + if ( default_project(&proj) ) { + ERROR("Failed to set up default project\n"); + return 1; + } proj.image_info = NULL; |