diff options
author | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-05-02 22:41:52 -0700 |
---|---|---|
committer | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-05-02 22:41:52 -0700 |
commit | 63b741cc97ab20e086e3429fb517bf6662b87bd1 (patch) | |
tree | 1b14691be4c597dcc7e5531f76a9120d9ef420de /lib | |
parent | Show 'running now' if the task has not yet completed (diff) | |
download | jitterbug-63b741cc97ab20e086e3429fb517bf6662b87bd1.tar.gz |
Add a test for requesting a nonexistent task
Diffstat (limited to 'lib')
-rw-r--r-- | lib/jitterbug/Task.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jitterbug/Task.pm b/lib/jitterbug/Task.pm index 998e9e4..24366c1 100644 --- a/lib/jitterbug/Task.pm +++ b/lib/jitterbug/Task.pm @@ -10,7 +10,7 @@ get '/:task_id' => sub { my $task = schema->resultset('Task')->find($task_id); if (!$task) { - render_error("task doesn't exists", 404); + send_error("task does not exist!", 404); } template 'task/index', {task => $task }; |