diff options
author | Thomas White <taw@physics.org> | 2013-02-09 08:51:43 -0800 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-02-09 08:51:43 -0800 |
commit | afafa4ca344de75f27771d8191e79c6280b68694 (patch) | |
tree | e908fdecf2a2ee3351a2d4e1d768de91bf8e5971 /src | |
parent | 3de4d63ee345b01a9f992f60e1fb818b0c707c9c (diff) |
hdfsee: Tidy up confusing error message
Diffstat (limited to 'src')
-rw-r--r-- | src/dw-hdfsee.c | 1 | ||||
-rw-r--r-- | src/hdfsee.c | 6 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c index 19aa6f35..ee3b55f0 100644 --- a/src/dw-hdfsee.c +++ b/src/dw-hdfsee.c @@ -1819,7 +1819,6 @@ DisplayWindow *displaywindow_open(const char *filename, const char *peaks, dw->hdfile = hdfile_open(filename); if ( dw->hdfile == NULL ) { - ERROR("Couldn't open file '%s'\n", filename); free(dw); return NULL; } else { diff --git a/src/hdfsee.c b/src/hdfsee.c index be1f4876..894b8af9 100644 --- a/src/hdfsee.c +++ b/src/hdfsee.c @@ -266,11 +266,7 @@ int main(int argc, char *argv[]) ring_radii, n_rings, ring_size); - if ( main_window_list[i] == NULL ) { - ERROR("Couldn't open display window\n"); - } else { - main_n_windows++; - } + if ( main_window_list[i] != NULL ) main_n_windows++; } if ( main_n_windows == 0 ) return 0; |