changeset 561:7dce38c022d7

Be consistent about not using \n at end of th_io_error() messages.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 05 Jan 2020 23:56:22 +0200
parents 414755d33796
children 5d2c1bfc04aa
files th_config.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/th_config.c	Sun Jan 05 20:47:21 2020 +0200
+++ b/th_config.c	Sun Jan 05 23:56:22 2020 +0200
@@ -343,7 +343,7 @@
                 if (ctx.parseMode != PM_IDLE)
                 {
                     ret = th_io_error(fh, THERR_OUT_OF_DATA,
-                        "Unexpected end of file.\n");
+                        "Unexpected end of file.");
                     goto out;
                 }
 
@@ -390,7 +390,7 @@
                 else
                 {
                     ret = th_io_error(fh, THERR_INVALID_DATA,
-                        "Invalid nesting sequence encountered.\n");
+                        "Invalid nesting sequence encountered.");
                     goto out;
                 }
             }
@@ -405,7 +405,7 @@
             {
                 // Error! Invalid character found
                 ret = th_io_error(fh, THERR_INVALID_DATA,
-                    "Unexpected character '%c'.\n", ctx.ch);
+                    "Unexpected character '%c'.", ctx.ch);
                 goto out;
             }
             break;
@@ -444,7 +444,7 @@
                 // Error! Invalid character found
                 tmpStr[strPos] = 0;
                 ret = th_io_error(fh, THERR_INVALID_DATA,
-                    "Unexpected character '%c' in key name '%s'.\n",
+                    "Unexpected character '%c' in key name '%s'.",
                     ctx.ch, tmpStr);
                 goto out;
             }
@@ -480,7 +480,7 @@
                 {
                     // Error! No configuration key by this name found
                     ret = th_io_error(fh, THERR_INVALID_DATA,
-                        "No such configuration setting ('%s')\n",
+                        "No such configuration setting: '%s'.",
                         tmpStr);
                     goto out;
                 }
@@ -491,7 +491,7 @@
             {
                 // Error! '=' expected!
                 ret = th_io_error(fh, THERR_INVALID_DATA,
-                    "Unexpected character '%c', assignation '=' was expected.\n",
+                    "Unexpected character '%c', assignation '=' was expected.",
                     ctx.ch);
                 goto out;
             }
@@ -541,7 +541,7 @@
             {
                 // Error! Section start '{' expected!
                 ret = th_io_error(fh, THERR_INVALID_DATA,
-                    "Unexpected character '%c', section start '{' was expected.\n",
+                    "Unexpected character '%c', section start '{' was expected.",
                     ctx.ch);
                 goto out;
             }
@@ -698,7 +698,7 @@
             if (ret != THERR_OK)
             {
                 ret = th_io_error(fh, ret,
-                    "Invalid boolean value for '%s'.\n",
+                    "Invalid boolean value for '%s'.",
                     item->name);
                 goto out;
             }