diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-09-19 00:20:20 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-09-19 00:20:20 -0300 |
commit | 97bbea389f55845ef85d3664fda04202057a6106 (patch) | |
tree | 0b05c427783e2c69302221c803291d5c4940c681 | |
parent | 7e946b6dfb9b29636ac39f269bba6eeee863e24b (diff) | |
download | blogc-97bbea389f55845ef85d3664fda04202057a6106.tar.gz blogc-97bbea389f55845ef85d3664fda04202057a6106.tar.bz2 blogc-97bbea389f55845ef85d3664fda04202057a6106.zip |
source-parser: fixed error message
-rw-r--r-- | src/source-parser.c | 2 | ||||
-rw-r--r-- | tests/check_source_parser.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/source-parser.c b/src/source-parser.c index f9a60ae..aee5c23 100644 --- a/src/source-parser.c +++ b/src/source-parser.c @@ -174,7 +174,7 @@ blogc_source_parse(const char *src, size_t src_len, blogc_error_t **err) switch (state) { case SOURCE_START: *err = blogc_error_parser(BLOGC_ERROR_SOURCE_PARSER, src, src_len, - current, "Your config file is empty."); + current, "Your source file is empty."); break; case SOURCE_CONFIG_KEY: *err = blogc_error_parser(BLOGC_ERROR_SOURCE_PARSER, src, src_len, diff --git a/tests/check_source_parser.c b/tests/check_source_parser.c index 0299c16..94f75c9 100644 --- a/tests/check_source_parser.c +++ b/tests/check_source_parser.c @@ -136,7 +136,7 @@ test_source_parse_config_empty(void **state) assert_null(source); assert_non_null(err); assert_int_equal(err->type, BLOGC_ERROR_SOURCE_PARSER); - assert_string_equal(err->msg, "Your config file is empty."); + assert_string_equal(err->msg, "Your source file is empty."); blogc_error_free(err); b_trie_free(source); } |