Skip to content

Commit

Permalink
[webui] Replace catch-all 'rescue' with something more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
saschpe committed Mar 22, 2012
1 parent 2be7115 commit eeeb1e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webui/app/controllers/package_controller.rb
Expand Up @@ -617,8 +617,8 @@ def save_file
else
begin
@package.save_file :filename => filename
rescue
flash[:error] = "Filename invalid '#{filename}'."
rescue ActiveXML::Transport::Error => e
flash[:error], _, _ = ActiveXML::Transport.extract_error_message e
redirect_back_or_to :action => 'add_file', :project => params[:project], :package => params[:package] and return
end
end
Expand Down

0 comments on commit eeeb1e1

Please sign in to comment.