diff options
-rw-r--r-- | application.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/application.rb b/application.rb index b66c828..bae6572 100644 --- a/application.rb +++ b/application.rb @@ -39,7 +39,8 @@ post '/?' do task = Task.new task.save # needed to create id task.uri = url_for("/#{task.id}", :full) - task.save + raise "could not save" unless task.save + LOGGER.debug "task created" task.uri end |