MCPcopy Index your code
hub / github.com/larksuite/cli / mailInputStatError

Function mailInputStatError

shortcuts/mail/mail_errors.go:39–47  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

37}
38
39func mailInputStatError(err error) error {
40 if err == nil {
41 return nil
42 }
43 if errors.Is(err, fileio.ErrPathValidation) {
44 return mailValidationError("unsafe file path: %s", err).WithCause(err)
45 }
46 return mailValidationError("cannot read file: %s", err).WithCause(err)
47}
48
49func mailDecorateProblemMessage(err error, format string, args ...any) error {
50 if err == nil {

Callers 8

loadPatchFileFunction · 0.85
readBodyFileFunction · 0.85
resolveTemplateContentFunction · 0.85
statAttachmentFilesFunction · 0.85
uploadToDriveForTemplateFunction · 0.85

Calls 3

mailValidationErrorFunction · 0.85
IsMethod · 0.80
WithCauseMethod · 0.45

Tested by 1