MCPcopy Create free account
hub / github.com/AudDMusic/RedditBot / captureFunc

Function captureFunc

main.go:1482–1492  ·  view source on GitHub ↗
(f func() error)

Source from the content-addressed store, hash-verified

1480}
1481
1482func captureFunc(f func() error) (r bool) {
1483 err := f()
1484 if r = err != nil; r {
1485 _, file, no, ok := runtime.Caller(1)
1486 if ok {
1487 err = fmt.Errorf("%v from %s#%d", err, file, no)
1488 }
1489 go raven.CaptureError(err, nil)
1490 }
1491 return
1492}
1493
1494func commentToMessage(comment *models.Comment) *reddit1.Message {
1495 if comment == nil {

Callers 2

getJSONFunction · 0.85
WatchChangesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected