Commit 61603001 authored by Guillaume Porte's avatar Guillaume Porte 😶
Browse files

ajout de try/catch supplémentaires en cas d'erreurs sur les métadonnées

parent 899325f3
Loading
Loading
Loading
Loading
+9 −3
Changes for rxq/config.xqm: 9 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -9,6 +9,9 @@ import module namespace max.hht = 'pddn/max/hht' at 'hht.xqm';
(: CONFIGURATION file path. :)
declare variable $max.config:CONFIGURATION_FILE := "../configuration/configuration.xml";

(: DEFAULT HTML HEAD TAGS file path. :)
declare variable $max.config:DEFAULT_HTML_HEAD_TAGS := "../configuration/defaultHtmlHeadTags.xml";


(::)
declare %private function max.config:checkConfiguration($projectId){
@@ -257,6 +260,8 @@ declare function max.config:getTextOptionsFragment($project){
};




(: get project data from config file :)
declare function max.config:getProjectData($project){
  map:merge(
@@ -293,11 +298,12 @@ declare function max.config:getHtmlHeadTags(
          map{"error" : "Le type doit être 'default', 'html' ou 'xml'"}
      }
      catch *{
          map{"error" : "Une erreur est survenue."}
          map{"error" : "Une erreur est survenue. (1)"}
      }
    }
    catch *{}
    catch *{
      map{"error" : "Une erreur est survenue. (2)"}
    }
};