Skip to content

Commit cd8a068

Browse files
committed
Solve wrong error message location.
1 parent 1001fcd commit cd8a068

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/configuration/source/configuration_object.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ configuration configuration_object_initialize(const char *name, const char *path
104104

105105
if (config->source == NULL)
106106
{
107-
log_write("metacall", LOG_LEVEL_ERROR, "Failed to load configuration %s from %s", name, path);
108-
109107
free(config);
110108

111109
return NULL;
@@ -268,6 +266,8 @@ int configuration_object_childs(configuration config, vector childs, set storage
268266

269267
if (child == NULL)
270268
{
269+
log_write("metacall", LOG_LEVEL_ERROR, "Failed to load configuration %s from %s", (char *)key, path);
270+
271271
return 1;
272272
}
273273

0 commit comments

Comments
 (0)