Skip to content

Commit

Permalink
Merge pull request #4437 from mschnitzer/rescue_from_invalid_username…
Browse files Browse the repository at this point in the history
…_exception

[webui] Show error on invalid usernames in package meta
  • Loading branch information
mschnitzer committed Feb 2, 2018
2 parents 35e5c7e + f57da41 commit 7089eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/controllers/webui/package_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ def save_meta
@package.update_from_xml(meta_xml)
flash.now[:success] = 'The Meta file has been successfully saved.'
render layout: false, partial: 'layouts/webui/flash', object: flash
rescue ActiveXML::Transport::Error => e
rescue ActiveXML::Transport::Error, NotFoundError => e
flash.now[:error] = "Error while saving the Meta file: #{e}."
render layout: false, status: 400, partial: 'layouts/webui/flash', object: flash
end
Expand Down

0 comments on commit 7089eee

Please sign in to comment.