Skip to content

Commit

Permalink
[webui] Fix namespace issues when catching exceptions
Browse files Browse the repository at this point in the history
This was causing following error when an exception occured in /projects/new_release_request:
  "uninitialized constant BsRequestAction::RepositoryWithoutReleaseTarget"

Commit that introduced this: a1632de
  • Loading branch information
bgeuken committed Nov 9, 2015
1 parent f6e9ce1 commit ac52151
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/app/controllers/webui/project_controller.rb
Expand Up @@ -173,9 +173,9 @@ def new_release_request
rescue Patchinfo::IncompletePatchinfo,
BsRequestAction::UnknownProject,
BsRequestAction::BuildNotFinished,
BsRequestAction::RepositoryWithoutReleaseTarget,
BsRequestAction::RepositoryWithoutArchitecture,
BsRequestAction::ArchitectureOrderMissmatch,
BsRequestActionMaintenanceRelease::RepositoryWithoutReleaseTarget,
BsRequestActionMaintenanceRelease::RepositoryWithoutArchitecture,
BsRequestActionMaintenanceRelease::ArchitectureOrderMissmatch,
BsRequestAction::VersionReleaseDiffers,
BsRequestAction::UnknownTargetProject,
BsRequestAction::UnknownTargetPackage => e
Expand Down

0 comments on commit ac52151

Please sign in to comment.