shithub: orca

Download patch

ref: 99a99580a846558d681ca628d7ca69c8dcea41b1
parent: 0c17f593020186f0e19216e1827ad976478ca8fb
author: cancel <cancel@cancel.fm>
date: Mon Nov 26 00:43:53 EST 2018

Clean up punctuation in error msgs

--- a/cli_main.c
+++ b/cli_main.c
@@ -50,18 +50,18 @@
   if (optind == argc - 1) {
     input_file = argv[optind];
   } else if (optind < argc - 1) {
-    fprintf(stderr, "Expected only 1 file argument");
+    fprintf(stderr, "Expected only 1 file argument.\n");
     return 1;
   }
 
   if (input_file == NULL) {
-    fprintf(stderr, "No input file\n");
+    fprintf(stderr, "No input file.\n");
     usage();
     return 1;
   }
   if (ticks < 0) {
     usage();
-    fprintf(stderr, "Time must be >= 0\n");
+    fprintf(stderr, "Time must be >= 0.\n");
     return 1;
   }
 
@@ -90,7 +90,7 @@
       errstr = "Grid file is not a rectangle";
       break;
     }
-    fprintf(stderr, "File load error: %s\n", errstr);
+    fprintf(stderr, "File load error: %s.\n", errstr);
     return 1;
   }
   for (int i = 0; i < ticks; ++i) {