MCPcopy Index your code
hub / github.com/coder/coder / newUserPreferenceSettingsAPIError

Function newUserPreferenceSettingsAPIError

coderd/users.go:1515–1524  ·  view source on GitHub ↗
(message string, err error)

Source from the content-addressed store, hash-verified

1513}
1514
1515func newUserPreferenceSettingsAPIError(message string, err error) userPreferenceSettingsAPIError {
1516 return userPreferenceSettingsAPIError{
1517 statusCode: http.StatusInternalServerError,
1518 response: codersdk.Response{
1519 Message: message,
1520 Detail: err.Error(),
1521 },
1522 err: err,
1523 }
1524}
1525
1526func (e userPreferenceSettingsAPIError) Error() string {
1527 return fmt.Sprintf("%s: %s", e.response.Message, e.err)

Callers 1

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected