MCPcopy
hub / github.com/eth0izzle/shhgit / LogIfError

Function LogIfError

core/util.go:37–41  ·  view source on GitHub ↗
(text string, err error)

Source from the content-addressed store, hash-verified

35}
36
37func LogIfError(text string, err error) {
38 if err != nil {
39 GetSession().Log.Error("%s (%s", text, err.Error())
40 }
41}
42
43func GetHash(s string) string {
44 h := sha1.New()

Callers 1

InitCsvWriterMethod · 0.85

Calls 2

GetSessionFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected