diff --git a/ecrire/bootstrap/inc/loading.php b/ecrire/bootstrap/inc/loading.php
index 6045850ad9f6c0276c3db46ce64483cb998e0d20..ec2fa9fff086d4b1ec738f6c6eabe705e497d575 100644
--- a/ecrire/bootstrap/inc/loading.php
+++ b/ecrire/bootstrap/inc/loading.php
@@ -249,7 +249,8 @@ function charger_fonction_url(string $quoi, string $type = '') {
 			if (!$type && $url_type !== 'page') {
 				return charger_fonction_url($quoi, 'page');
 			}
-			return '';
+			// si on arrive ici c'est qu'il manque une fonction de traitement : lever une erreur
+			throw new \Exception(sprintf('Missing a url function for type %s : %s', $url_type, "urls_{$url_type}_{$fquoi}()"));
 	}
 }