PGFService: eleminate warning "Defined but not used: ‘serverError’"

This commit is contained in:
hallgren
2016-06-09 11:27:57 +00:00
parent 52912d39e6
commit e952e10f33

View File

@@ -312,6 +312,10 @@ instance ToATree C.Expr where
showTree = show
toATree = cToATree
#else
serverError = throw 500
#endif
--------------------------------------------------------------------------------
@@ -522,7 +526,6 @@ errorMissingId = badRequest "Missing identifier" ""
notFound = throw 404 "Not found"
badRequest = throw 400
serverError = throw 500
throw code msg extra =
throwCGIError code msg [msg ++(if null extra then "" else ": "++extra)]