[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/9] sys-file-reader: Add missing periods at end of error message
From: |
Ben Pfaff |
Subject: |
[PATCH 4/9] sys-file-reader: Add missing periods at end of error messages. |
Date: |
Sun, 30 Jan 2011 20:37:35 -0800 |
Most of the error messages already ended in periods, so this adds them to
the others for consistency.
---
src/data/sys-file-reader.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/data/sys-file-reader.c b/src/data/sys-file-reader.c
index 898b673..5c30e23 100644
--- a/src/data/sys-file-reader.c
+++ b/src/data/sys-file-reader.c
@@ -1060,7 +1060,7 @@ read_mrsets (struct sfm_reader *r, size_t size, size_t
count,
if (!text_match (text, ' '))
{
sys_warn (r, _("Missing space following `%c' at offset %zu "
- "in MRSETS record"), 'C', text_pos (text));
+ "in MRSETS record."), 'C', text_pos (text));
break;
}
}
@@ -1078,7 +1078,7 @@ read_mrsets (struct sfm_reader *r, size_t size, size_t
count,
if (!text_match (text, ' '))
{
sys_warn (r, _("Missing space following `%c' at offset %zu "
- "in MRSETS record"), 'E', text_pos (text));
+ "in MRSETS record."), 'E', text_pos (text));
break;
}
@@ -1087,7 +1087,7 @@ read_mrsets (struct sfm_reader *r, size_t size, size_t
count,
mrset->label_from_var_label = true;
else if (strcmp (number, "1"))
sys_warn (r, _("Unexpected label source value `%s' "
- "following `E' at offset %zu in MRSETS record"),
+ "following `E' at offset %zu in MRSETS record."),
number, text_pos (text));
}
else
@@ -1339,7 +1339,7 @@ read_long_string_map (struct sfm_reader *r, size_t size,
size_t count,
if (length < 1 || length > MAX_STRING)
{
sys_warn (r, _("%s listed as string of invalid length %s "
- "in very length string record."),
+ "in very long string record."),
var_get_name (var), length_s);
continue;
}
@@ -1369,7 +1369,7 @@ read_long_string_map (struct sfm_reader *r, size_t size,
size_t count,
var_set_short_name (var, i, var_get_short_name (seg, 0));
if (ROUND_UP (width, 8) != ROUND_UP (alloc_width, 8))
sys_error (r, _("Very long string with width %ld has segment %d "
- "of width %d (expected %d)"),
+ "of width %d (expected %d)."),
length, i, width, alloc_width);
}
dict_delete_consecutive_vars (dict, idx + 1, segment_cnt - 1);
@@ -1547,7 +1547,7 @@ read_attributes (struct sfm_reader *r, struct text_record
*text,
value = text_get_token (text, ss_cstr ("\n"), NULL);
if (value == NULL)
{
- text_warn (r, text, _("Error parsing attribute value %s[%d]"),
+ text_warn (r, text, _("Error parsing attribute value %s[%d]."),
key, index);
break;
}
@@ -1561,7 +1561,7 @@ read_attributes (struct sfm_reader *r, struct text_record
*text,
else
{
text_warn (r, text,
- _("Attribute value %s[%d] is not quoted: %s"),
+ _("Attribute value %s[%d] is not quoted: %s."),
key, index, value);
attribute_add_value (attr, value);
}
@@ -1650,7 +1650,7 @@ read_long_string_value_labels (struct sfm_reader *r,
{
sys_warn (r, _("Ignoring long string value record for variable %s "
"because the record's width (%d) does not match the "
- "variable's width (%d)"),
+ "variable's width (%d)."),
var_name, width, var_get_width (v));
skip_long_string_value_labels (r, n_labels);
continue;
--
1.7.1
- [PATCH 0/9] sys-file-reader fixes and tests, Ben Pfaff, 2011/01/30
- [PATCH 3/9] sys-file-reader: Check that multiple response set names begin with `$'., Ben Pfaff, 2011/01/30
- [PATCH 2/9] sys-file-reader: Fix double-free on read of partial record., Ben Pfaff, 2011/01/30
- [PATCH 7/9] sys-file-reader: Avoid redundant "within system file" in messages., Ben Pfaff, 2011/01/30
- [PATCH 4/9] sys-file-reader: Add missing periods at end of error messages.,
Ben Pfaff <=
- [PATCH 6/9] sys-file-reader: Improve debugging usefulness of error messages., Ben Pfaff, 2011/01/30
- [PATCH 1/9] hash-functions: Use C instead of preprocessor to test size of double., Ben Pfaff, 2011/01/30
- [PATCH 5/9] sys-file-reader: Really enable warnings for invalid variable formats., Ben Pfaff, 2011/01/30
- [PATCH 8/9] sys-file-reader: Elevate invalid number of labels from warning to error., Ben Pfaff, 2011/01/30
- [PATCH 9/9] sys-file-reader: Add tests., Ben Pfaff, 2011/01/30