diff options
| author | Jeff Carr <[email protected]> | 2024-11-06 20:28:31 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-06 20:28:31 -0600 |
| commit | 2de5fd79554a3407f34e8b3adbb62da75fe7aa90 (patch) | |
| tree | 67de4c1a85ab92a3d03aa6156971c28e570134f5 /http.go | |
| parent | 6933b29f59e711b2123bec26cda92fd2f8cbccb3 (diff) | |
fixing protobuf handlingv0.22.4
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'http.go')
| -rw-r--r-- | http.go | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -187,9 +187,15 @@ func okHandler(w http.ResponseWriter, r *http.Request) { } else { msg(w, "IsPrimitive() == false") } - if ok, files, err := me.current.Status.IsProtobuf(); ok { - msg(w, log.Sprint("IsProtobuf() == true files = ", files)) - msg(w, log.Sprint("IsProtobuf() == err", err)) + if ok, compiled, err := me.current.Status.IsProtobuf(); ok { + msg(w, log.Sprint("IsProtobuf() == true compiled protobuf files = ", compiled)) + if err != nil { + msg(w, log.Sprint("IsProtobuf() == err", err)) + os.Exit(-1) + } + for _, s := range compiled { + log.Info("\tcompiled file found:", s) + } } else { msg(w, "IsProtobuf() == false") msg(w, log.Sprint("IsProtobuf() == err", err)) |
