Built-in error handling should take care of this in dev mode

This commit is contained in:
swaggboi 2022-08-20 12:47:30 -04:00
parent 17557a72a4
commit 59a5763f49
4 changed files with 8 additions and 8 deletions

View File

@ -97,7 +97,7 @@ any [qw{GET POST}], '/post', sub ($c) {
group { group {
under '/thread'; under '/thread';
get '/:thread_id', [message_id => qr/[0-9]+/], sub ($c) { get '/:thread_id', [thread_id => qr/[0-9]+/], sub ($c) {
my $thread_id = $c->param('thread_id'); my $thread_id = $c->param('thread_id');
my $thread = $c->thread->get_thread_by_id($thread_id); my $thread = $c->thread->get_thread_by_id($thread_id);
my $replies = $c->reply->get_replies_by_thread_id($thread_id); my $replies = $c->reply->get_replies_by_thread_id($thread_id);

View File

@ -25,8 +25,8 @@ Run the tests locally (against development environment)
## TODOs ## TODOs
1. Add hyperlink somewhere to single thread view (whoopsie) 1. Add hyperlink somewhere to single thread view (whoopsie)
1. Retrieve replies in the single thread view
1. Paging for replies in single thread view 1. Paging for replies in single thread view
1. Default 'threads per page' is broken if config file isn't correct 1. Default 'threads per page' is broken if config file isn't correct
(should pick up the default value wtf) (should pick up the default value wtf)
1. Why aren't the built-in error handling things working anymore??
1. Pick a date format 1. Pick a date format

View File

@ -26,8 +26,8 @@ sub get_replies_by_thread_id($self, $thread_id) {
END_SQL END_SQL
} }
sub exception($self, $exception) { #sub exception($self, $exception) {
say $exception # say $exception
} #}
1; 1;

View File

@ -92,8 +92,8 @@ sub get_thread_by_id($self, $thread_id) {
END_SQL END_SQL
} }
sub exception($self, $exception) { #sub exception($self, $exception) {
say $exception # say $exception
} #}
1; 1;