MCPcopy Create free account
hub / github.com/dagger/dagger / errorf

Method errorf

core/modfunc.go:359–370  ·  view source on GitHub ↗
(err error, msg string, args ...any)

Source from the content-addressed store, hash-verified

357}
358
359func (udp *UserDefaultPrimitive) errorf(err error, msg string, args ...any) error {
360 fullMessage := fmt.Sprintf("user defaults %s.%s(%s=...): %s",
361 udp.Function.mod.Self().Name(),
362 udp.Function.metadata.Name,
363 udp.Arg.Name,
364 fmt.Sprintf(msg, args...),
365 )
366 if err == nil {
367 return errors.New(fullMessage)
368 }
369 return fmt.Errorf("%s: %w", fullMessage, err)
370}
371
372func (udp *UserDefaultPrimitive) DagqlInput() (dagql.Input, error) {
373 value, err := udp.Value()

Callers 6

JSONValueMethod · 0.95
CallInputMethod · 0.95
ValueMethod · 0.95
CallInputMethod · 0.80
ValueMethod · 0.80
DagqlIDMethod · 0.80

Calls 3

SelfMethod · 0.80
NameMethod · 0.65
NewMethod · 0.65

Tested by

no test coverage detected