forked from vieter-v/vieter
Removed deprecated err.msg & err.code
This commit is contained in:
parent
f7e1aba30b
commit
78b477fb92
8 changed files with 18 additions and 20 deletions
|
|
@ -16,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: $err.msg')
|
||||
app.lerror('Failed to read repos file: $err.msg()')
|
||||
|
||||
return app.status(http.Status.internal_server_error)
|
||||
}
|
||||
|
|
@ -55,7 +55,7 @@ fn (mut app App) post_repo() web.Result {
|
|||
}
|
||||
|
||||
new_repo := git.repo_from_params(app.query) or {
|
||||
return app.json(http.Status.bad_request, new_response(err.msg))
|
||||
return app.json(http.Status.bad_request, new_response(err.msg()))
|
||||
}
|
||||
|
||||
id := rand.uuid_v4()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue