Skip to content

Commit

Permalink
Set error message. Refs midgardprojectgh-106
Browse files Browse the repository at this point in the history
  • Loading branch information
piotras committed Feb 18, 2013
1 parent 2bc1f8e commit fc055f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion php_midgard_handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ static MidgardConnection *__handle_from_global_config(MgdGHolder *mgh, GHashTabl
mgd = midgard_connection_new();

if (!midgard_connection_open_config(mgd, config)) {
php_error(E_WARNING, "Failed to open connection using given '%s' configuration", config_name);
php_error(E_WARNING, "Failed to open connection using given '%s' configuration. %s",
config_name, midgard_connection_get_error_string (mgd));
g_object_unref(mgd);
return NULL;
}
Expand Down

0 comments on commit fc055f3

Please sign in to comment.