From 12ec74e9238db30129e9885ffdfa2c7b9cbeb212 Mon Sep 17 00:00:00 2001 From: sdogruyol Date: Thu, 5 May 2016 23:34:07 +0300 Subject: [PATCH] Add instance types for Crystal 0.16.0 --- src/kemal/exceptions.cr | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/kemal/exceptions.cr b/src/kemal/exceptions.cr index ef5d9a6..4e641f5 100644 --- a/src/kemal/exceptions.cr +++ b/src/kemal/exceptions.cr @@ -6,10 +6,9 @@ module Kemal::Exceptions end class CustomException < Exception - getter context - def initialize(@context) - super "Rendered error with #{@context.response.status_code}" + def initialize(context) + super "Rendered error with #{context.response.status_code}" end end end