mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
b3b73d39a0
commit
0826e78266
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ parse_channels_conf_from_file (GstElement * dvbbasebin, const gchar * filename,
|
||||||
open_fail:
|
open_fail:
|
||||||
if (err->code == G_FILE_ERROR_NOENT) {
|
if (err->code == G_FILE_ERROR_NOENT) {
|
||||||
g_set_error (error, GST_RESOURCE_ERROR, GST_RESOURCE_ERROR_NOT_FOUND,
|
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 {
|
} else {
|
||||||
g_set_error (error, GST_RESOURCE_ERROR, GST_RESOURCE_ERROR_READ,
|
g_set_error (error, GST_RESOURCE_ERROR, GST_RESOURCE_ERROR_READ,
|
||||||
_("Couldn't load DVB channel configuration file: %s"), err->message);
|
_("Couldn't load DVB channel configuration file: %s"), err->message);
|
||||||
|
|
Loading…
Reference in a new issue