Skip to content

Commit 55a68aa

Browse files
committedSep 30, 2020
Merge branch 'master' of github.com:pacedotdev/oto
2 parents 6bfe790 + a9b374d commit 55a68aa

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed
 

‎.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@
1515
oto
1616
.DS_Store
1717
dist
18-
example/swift/SwiftCLIExample/SwiftCLIExample.xcodeproj/project.xcworkspace/xcuserdata/matryer.xcuserdatad/UserInterfaceState.xcuserstate
19-
example/swift/SwiftCLIExample/SwiftCLIExample.xcodeproj/project.xcworkspace/xcuserdata/matryer.xcuserdatad/UserInterfaceState.xcuserstate
18+
example/swift/SwiftCLIExample/SwiftCLIExample.xcodeproj/project.xcworkspace/xcuserdata/

‎otohttp/templates/server.go.plush

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ func (s *<%= camelize_down(service.Name) %>Server) handle<%= method.Name %>(w ht
4343
}
4444
response, err := s.<%= camelize_down(service.Name) %>.<%= method.Name %>(r.Context(), request)
4545
if err != nil {
46-
log.Println("TODO: oto service error:", err)
47-
http.Error(w, err.Error(), http.StatusInternalServerError)
46+
s.server.OnErr(w, r, err)
4847
return
4948
}
5049
if err := otohttp.Encode(w, r, http.StatusOK, response); err != nil {

0 commit comments

Comments
 (0)