# HG changeset patch # User Matti Hamalainen # Date 1578261382 -7200 # Node ID 7dce38c022d7e6153149010f2924d881b1084887 # Parent 414755d33796ffff353fee45448be90e5f23f5f7 Be consistent about not using \n at end of th_io_error() messages. diff -r 414755d33796 -r 7dce38c022d7 th_config.c --- 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; }