dvb/parsechannels: add information to file not found error

Adds useful failure info (like filename) comming from
g_file_get_contents() as done for every other error in
this block.
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2016-04-10 18:58:33 -07:00
parent b3b73d39a0
commit 0826e78266

View file

@ -162,7 +162,7 @@ parse_channels_conf_from_file (GstElement * dvbbasebin, const gchar * filename,
open_fail:
if (err->code == G_FILE_ERROR_NOENT) {
g_set_error (error, GST_RESOURCE_ERROR, GST_RESOURCE_ERROR_NOT_FOUND,
_("Couldn't find DVB channel configuration file"));
_("Couldn't find DVB channel configuration file: %s"), err->message);
} else {
g_set_error (error, GST_RESOURCE_ERROR, GST_RESOURCE_ERROR_READ,
_("Couldn't load DVB channel configuration file: %s"), err->message);