Commit 13567485 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

erreur si la base de l'édition n'existe pas

parent b3e127b7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -82,10 +82,16 @@ declare
function max:page($project, $page){
    let $dbPath := max.config:getProjectDBPath($project)
    return

        if (not($dbPath))
        then max:max-error(
                ' Configuration manquante pour le projet "'||$project||'" (fichier configuration/configuration.xml)',
                (), (), ())
        else
        if (not(db:exists($dbPath)))
            then max:max-error(
                    "Oups... La base '"|| $dbPath ||"' n'existe pas.!",
                    (), (), ())
        else
            try {
                switch ($page)