Merge remote-tracking branch 'origin/standalone_develop' into standalone_develop
This commit is contained in:
commit
65f987af70
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue