diff options
Diffstat (limited to 'stateview.c')
-rw-r--r-- | stateview.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/stateview.c b/stateview.c index 751d2af..1e8632f 100644 --- a/stateview.c +++ b/stateview.c @@ -61,13 +61,11 @@ int headless = 0; int main(int argc, char ** argv) { if (argc < 2) { - fprintf(stderr, "Usage: stateview FILENAME\n"); - exit(1); + fatal_error("Usage: stateview FILENAME\n"); } FILE * state_file = fopen(argv[1], "rb"); if (!state_file) { - fprintf(stderr, "Failed to open %s\n", argv[1]); - exit(1); + fatal_error("Failed to open %s\n", argv[1]); } config = load_config(argv[0]); int width = -1; |