mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
修复:提示使用tip_exception
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module Api::ProjectHelper
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
def load_project
|
||||
def load_project
|
||||
namespace = params[:owner]
|
||||
repo = params[:repo]
|
||||
|
||||
@@ -14,7 +14,7 @@ module Api::ProjectHelper
|
||||
else
|
||||
logger.info "###########:project not found"
|
||||
@project = nil
|
||||
render_not_found and return
|
||||
tip_exception(404, '您访问的页面不存在或已被删除')
|
||||
end
|
||||
@project
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user