Commit ef5b3133 authored by Bastien Nocera's avatar Bastien Nocera

backend: Better error message when SSL/TLS support is missing

Closes: #399
parent 6c13484a
Pipeline #165566 passed with stages
in 11 minutes and 9 seconds
......@@ -1945,6 +1945,8 @@ bvw_get_http_error_code (GstMessage *err_msg)
code = 404;
else if (strstr (dbg, "403") != NULL)
code = 403;
else if (strstr (dbg, "install glib-networking") != NULL)
code = 495;
done:
if (err != NULL)
......@@ -3957,6 +3959,12 @@ bvw_error_from_gst_error (BaconVideoWidget *bvw, GstMessage * err_msg)
goto done;
}
if (http_error_code == 495) {
ret = g_error_new_literal (BVW_ERROR, BVW_ERROR_READ_ERROR,
_("SSL/TLS support is missing. Check your installation."));
goto done;
}
if (is_error (e, RESOURCE, OPEN_READ)) {
if (strstr (dbg, g_strerror (EACCES)) != NULL) {
ret = g_error_new_literal (BVW_ERROR, BVW_ERROR_FILE_PERMISSION,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment