From 2b7ad938830355477747c8c1141658aee2da1385 Mon Sep 17 00:00:00 2001 From: thosakwe Date: Sat, 10 Dec 2016 12:10:21 -0500 Subject: [PATCH] Done??? --- .idea/workspace.xml | 286 +++++++++++++++++++++++++--------- README.md | 2 +- lib/src/http/fatal_error.dart | 5 +- lib/src/http/server.dart | 5 +- pubspec.yaml | 2 +- 5 files changed, 220 insertions(+), 80 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index b6251cab..ef4dd47b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,10 +2,9 @@ - - - + + @@ -38,11 +37,34 @@ - + + + + + + + + + + + + + + + + + + + + + + + + - - + + @@ -51,8 +73,8 @@ - - + + @@ -63,7 +85,7 @@ - + @@ -73,7 +95,7 @@ - + @@ -83,19 +105,21 @@ - - + + - - + + - + + + @@ -115,6 +139,8 @@ BEFORE + _onError + _fatalErrorStream.add @@ -129,11 +155,11 @@ @@ -167,8 +193,8 @@ - + @@ -181,6 +207,20 @@ + + + + + + + + - + @@ -331,7 +371,8 @@ 1481236071442 - + + 1481237183504 @@ -347,11 +388,18 @@ - - + @@ -383,7 +431,7 @@ - @@ -398,26 +446,26 @@ + - - - - - - + + - + + + + @@ -429,13 +477,98 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -510,55 +643,21 @@ - + - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -567,28 +666,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - + + + + + + + + + + + + - - + + diff --git a/README.md b/README.md index 90753e44..47bf246e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # angel_framework -[![pub 1.0.0-dev.31](https://img.shields.io/badge/pub-1.0.0--dev.31-red.svg)](https://pub.dartlang.org/packages/angel_framework) +[![pub 1.0.0-dev.32](https://img.shields.io/badge/pub-1.0.0--dev.32-red.svg)](https://pub.dartlang.org/packages/angel_framework) ![build status](https://travis-ci.org/angel-dart/framework.svg) Core libraries for the Angel Framework. \ No newline at end of file diff --git a/lib/src/http/fatal_error.dart b/lib/src/http/fatal_error.dart index 665751d2..ab87ef2f 100644 --- a/lib/src/http/fatal_error.dart +++ b/lib/src/http/fatal_error.dart @@ -1,8 +1,11 @@ +import 'dart:io'; + /// Thrown whenever Angel completely fails to respond to a request. class AngelFatalError { var error; + HttpRequest request; StackTrace stack; - AngelFatalError({this.error, this.stack}); + AngelFatalError({this.request, this.error, this.stack}); } diff --git a/lib/src/http/server.dart b/lib/src/http/server.dart index b810b825..e1b5fe68 100644 --- a/lib/src/http/server.dart +++ b/lib/src/http/server.dart @@ -235,11 +235,12 @@ class Angel extends AngelBase { } _finalizeResponse(request, res); } catch (e, st) { - _fatalErrorStream.add(new AngelFatalError(error: e, stack: st)); + _fatalErrorStream.add(new AngelFatalError(request: request, error: e, stack: st)); } + } else { + _fatalErrorStream.add(new AngelFatalError(request: request, error: e, stack: st)); } - _onError(e, st); break; } } diff --git a/pubspec.yaml b/pubspec.yaml index 7f06ce29..15d722ad 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: angel_framework -version: 1.0.0-dev.31 +version: 1.0.0-dev.32 description: Core libraries for the Angel framework. author: Tobe O homepage: https://github.com/angel-dart/angel_framework