Fix crash when exporttree is set to a bad value.
Made it impossible to recover from setting a bad value since enableremote to change it would crash. This commit was sponsored by Henrik Riomar on Patreon.
This commit is contained in:
parent
def5d8b02c
commit
6f0d8870df
2 changed files with 4 additions and 1 deletions
|
@ -75,7 +75,9 @@ adjustExportable r = case M.lookup "exporttree" (config r) of
|
|||
)
|
||||
Nothing -> notexport
|
||||
Just "no" -> notexport
|
||||
Just _ -> error "bad exporttree value"
|
||||
Just _ -> do
|
||||
warning $ "bad exporttree value for " ++ name r ++ ", assuming not an export"
|
||||
notexport
|
||||
where
|
||||
notexport = return $ r
|
||||
{ exportActions = exportUnsupported
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue