forked from GitHub/gf-core
PGFService: eleminate warning "Defined but not used: ‘serverError’"
This commit is contained in:
@@ -312,6 +312,10 @@ instance ToATree C.Expr where
|
|||||||
showTree = show
|
showTree = show
|
||||||
toATree = cToATree
|
toATree = cToATree
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
serverError = throw 500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
@@ -522,7 +526,6 @@ errorMissingId = badRequest "Missing identifier" ""
|
|||||||
|
|
||||||
notFound = throw 404 "Not found"
|
notFound = throw 404 "Not found"
|
||||||
badRequest = throw 400
|
badRequest = throw 400
|
||||||
serverError = throw 500
|
|
||||||
|
|
||||||
throw code msg extra =
|
throw code msg extra =
|
||||||
throwCGIError code msg [msg ++(if null extra then "" else ": "++extra)]
|
throwCGIError code msg [msg ++(if null extra then "" else ": "++extra)]
|
||||||
|
|||||||
Reference in New Issue
Block a user