mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +00:00
return after error
This commit is contained in:
parent
eaf6a707ca
commit
b001a51a30
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ func (a *api) createWatcherHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
if len(accs) == 0 {
|
if len(accs) == 0 {
|
||||||
a.errorResponse(w, r, 422, "can't create watchers without accounts")
|
a.errorResponse(w, r, 422, "can't create watchers without accounts")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
account := accs[0]
|
account := accs[0]
|
||||||
|
|
Loading…
Reference in a new issue