From 6d66efb67cf8e667d6e936fed8afa3c92915cf2a Mon Sep 17 00:00:00 2001 From: thosakwe Date: Sat, 1 Jul 2017 21:56:23 -0400 Subject: [PATCH] Add stackTrace --- .idea/workspace.xml | 136 ++++++++++++++------------------------- lib/src/http/server.dart | 2 + pubspec.yaml | 2 +- 3 files changed, 51 insertions(+), 89 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index fbe5efa5..9a09eed0 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,11 +2,9 @@ - - + - @@ -29,48 +27,18 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - end reopen REDIRECT close( @@ -111,6 +78,7 @@ Unhandled exc handleAn Tom Fo + handleRequest( _isClosed @@ -159,10 +127,10 @@ @@ -468,7 +436,8 @@ - + + 1481237183504 @@ -610,7 +579,14 @@ - \ No newline at end of file diff --git a/lib/src/http/server.dart b/lib/src/http/server.dart index 45f29706..6322b3e2 100644 --- a/lib/src/http/server.dart +++ b/lib/src/http/server.dart @@ -398,6 +398,7 @@ class Angel extends AngelBase { // 'Handler completed successfully, did not terminate response: $handler'); } } on AngelHttpException catch (e, st) { + e.stackTrace ??= st; return await handleAngelHttpException(e, st, req, res, request); } } @@ -405,6 +406,7 @@ class Angel extends AngelBase { try { await sendResponse(request, req, res); } on AngelHttpException catch (e, st) { + e.stackTrace ??= st; return await handleAngelHttpException(e, st, req, res, request, ignoreFinalizers: true); } diff --git a/pubspec.yaml b/pubspec.yaml index d1a319cd..ceae67ed 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: angel_framework -version: 1.0.6 +version: 1.0.6+1 description: A high-powered HTTP server with DI, routing and more. author: Tobe O homepage: https://github.com/angel-dart/angel_framework