Skip to content

Commit

Permalink
Updating for bad behavior on trunk version.
Browse files Browse the repository at this point in the history
  • Loading branch information
daegalus committed Nov 2, 2013
1 parent 0781e8f commit 1184e77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/fukiya_request_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ class FukiyaRequestHandler {
//TODO: Change these to use a Logger once I figure out how to get a Logger to always print, even in tests.
print("[Fukiya][Error] There was an error handling the request with handler for $method $path.");
print("[Fukiya][Error] $error");
context.response.statusCode = HttpStatus.INTERNAL_SERVER_ERROR;
try {
context.response.statusCode = HttpStatus.INTERNAL_SERVER_ERROR;
context.response.write("500 Internal Server Error");
context.response.close();
} catch (error) {}
context.response.close();

});
}
}

0 comments on commit 1184e77

Please sign in to comment.