Fix rendering error in not authenticated oauth route
Change-Id: I776c0dbdcd1e28e4f3b16b0832309164c9425dcc
diff --git a/templates/exception.html.ep b/templates/exception.html.ep
index af0aaf6..f85edc6 100644
--- a/templates/exception.html.ep
+++ b/templates/exception.html.ep
@@ -1,4 +1,4 @@
-% my $msg = $exception->message // '500: Internal Server Error';
+% my $msg = stash('msg') // stash('exception')->message // '500: Internal Server Error';
% layout 'main', title => 'KorAP: ' . $msg;
<p class="no-results"><%= $msg %></p>