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

Function fileLinkErrorWarning

coderd/exp_chats.go:6390–6392  ·  view source on GitHub ↗

fileLinkErrorWarning builds a user-facing warning when a database error prevented linking files to a chat.

(count int)

Source from the content-addressed store, hash-verified

6388// fileLinkErrorWarning builds a user-facing warning when a
6389// database error prevented linking files to a chat.
6390func fileLinkErrorWarning(count int) string {
6391 return fmt.Sprintf("%d file(s) could not be linked due to a server error", count)
6392}
6393
6394// fetchChatFileMetadata returns metadata for all files linked to
6395// the given chat. Errors are logged and result in a nil return

Callers 3

postChatsMethod · 0.85
postChatMessagesMethod · 0.85
patchChatMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected