Skip to content

Commit be8ea44

Browse files
committed
Fix incorrect error message
Signed-off-by: Stephen Gallagher <[email protected]>
1 parent d980abd commit be8ea44

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modulemd/v2/modulemd-module-stream.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,17 +258,17 @@ modulemd_module_stream_read_yaml (yaml_parser_t *parser,
258258
{
259259
g_set_error_literal (error,
260260
MODULEMD_YAML_ERROR,
261-
MODULEMD_YAML_ERROR_PARSE,
262-
"YAML contained more than a single subdocument");
261+
MODULEMD_YAML_ERROR_UNPARSEABLE,
262+
"Parser error");
263263
return NULL;
264264
}
265265

266266
if (event.type != YAML_STREAM_END_EVENT)
267267
{
268268
g_set_error_literal (error,
269269
MODULEMD_YAML_ERROR,
270-
MODULEMD_YAML_ERROR_UNPARSEABLE,
271-
"Parser error");
270+
MODULEMD_YAML_ERROR_PARSE,
271+
"YAML contained more than a single subdocument");
272272
return NULL;
273273
}
274274
yaml_event_delete (&event);

0 commit comments

Comments
 (0)