Built-in error handling should take care of this in dev mode
This commit is contained in:
parent
17557a72a4
commit
59a5763f49
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue