mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
sub_entries render -2
This commit is contained in:
@@ -110,7 +110,8 @@ class RepositoriesController < ApplicationController
|
||||
result = interactor.result
|
||||
@sub_entries = result.is_a?(Array) ? result.sort_by{ |hash| hash['type'] } : result
|
||||
else
|
||||
render_error(interactor.error)
|
||||
status = interactor.error == "你访问的文件不存在"? -2 : -1
|
||||
render_error(interactor.error,status)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user