Alejandro Alvarez Ayllon 449f386
diff --git a/src/plugins/srm/gfal_srm_getput.c b/src/plugins/srm/gfal_srm_getput.c
Alejandro Alvarez Ayllon 449f386
index 52bb244..bf30262 100644
Alejandro Alvarez Ayllon 449f386
--- a/src/plugins/srm/gfal_srm_getput.c
Alejandro Alvarez Ayllon 449f386
+++ b/src/plugins/srm/gfal_srm_getput.c
Alejandro Alvarez Ayllon 449f386
@@ -69,7 +69,8 @@ static int validate_turls(int n_results, gfal_srm_result** resu,
Alejandro Alvarez Ayllon 449f386
         if (!matching_protocol) {
Alejandro Alvarez Ayllon 449f386
             failed = -1;
Alejandro Alvarez Ayllon 449f386
             gfal2_set_error(tmp_err, gfal2_get_plugin_srm_quark(), EBADMSG, __func__,
Alejandro Alvarez Ayllon 449f386
-                    "The SRM endpoint returned a protocol that wasn't requested: %s");
Alejandro Alvarez Ayllon 449f386
+                    "The SRM endpoint returned a protocol that wasn't requested: %s",
Alejandro Alvarez Ayllon 449f386
+                    turl);
Alejandro Alvarez Ayllon 449f386
         }
Alejandro Alvarez Ayllon 449f386
     }
Alejandro Alvarez Ayllon 449f386
     // Didn't match, so free and set an error
Alejandro Alvarez Ayllon 449f386