This commit is contained in:
regiostech 2016-04-30 22:03:31 -04:00
parent b237c0c2d7
commit 496ecd8757
2 changed files with 2 additions and 1 deletions

View file

@ -13,6 +13,7 @@ class Angel extends Routable {
/// Default error handler, show HTML error page
var _errorHandler = (AngelHttpException e, req, ResponseContext res) {
res.header(HttpHeaders.CONTENT_TYPE, ContentType.HTML.toString());
res.status(e.statusCode);
res.write("<DOCTYPE html><html><head><title>${e.message}</title>");
res.write("</head><body><h1>${e.message}</h1><ul>");

View file

@ -1,5 +1,5 @@
name: angel_framework
version: 0.0.0-dev.11
version: 0.0.0-dev.12
description: Core libraries for the Angel framework.
author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/angel_framework