From 01c585e189bf25782f5a770a9517ecd4fa5db6ac Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Fri, 25 Jan 2013 11:29:05 +0100 Subject: [PATCH] I have no idea --- lib/travis/api/app/base.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/travis/api/app/base.rb b/lib/travis/api/app/base.rb index 172e3342..4ab5af58 100644 --- a/lib/travis/api/app/base.rb +++ b/lib/travis/api/app/base.rb @@ -18,6 +18,12 @@ class Travis::Api::App "This feature has not yet been implemented. Sorry :(\n\nPull Requests welcome!" end + def call(env) + super + rescue Sinatra::NotFound + [404, {'Content-Type' => 'text/plain'}, ['Tell Konstantin to fix this!']] + end + configure do # We pull in certain protection middleware in App. # Being token based makes us invulnerable to common