forked from vieter-v/vieter
Started work on better repos cli
This commit is contained in:
parent
d7f6c87053
commit
f44ce1c17f
5 changed files with 41 additions and 33 deletions
|
|
@ -4,6 +4,7 @@ import web
|
|||
import git
|
||||
import net.http
|
||||
import rand
|
||||
import response { new_response, new_data_response }
|
||||
|
||||
const repos_file = 'repos.json'
|
||||
|
||||
|
|
@ -15,7 +16,7 @@ fn (mut app App) get_repos() web.Result {
|
|||
|
||||
repos := rlock app.git_mutex {
|
||||
git.read_repos(app.conf.repos_file) or {
|
||||
app.lerror('Failed to read repos file.')
|
||||
app.lerror('Failed to read repos file: $err.msg')
|
||||
|
||||
return app.status(http.Status.internal_server_error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue