mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-05-31 00:41:20 +00:00
Return 404 if user not found
This commit is contained in:
parent
5e82ec72da
commit
0d3d367dd6
2 changed files with 8 additions and 0 deletions
|
@ -19,5 +19,7 @@ class Api::V1::UsersController < Api::V1::BaseController
|
|||
nickname: @steam.nickname
|
||||
}
|
||||
}
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
raise ActionController::RoutingError.new('User Not Found')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue