fileLinkCapWarning builds a user-facing warning when a batch of file IDs was atomically rejected because the resulting array would exceed the per-chat file cap.
(count int)
| 6382 | // of file IDs was atomically rejected because the resulting |
| 6383 | // array would exceed the per-chat file cap. |
| 6384 | func fileLinkCapWarning(count int) string { |
| 6385 | return fmt.Sprintf("file linking skipped: batch of %d file(s) would exceed limit of %d", count, codersdk.MaxChatFileIDs) |
| 6386 | } |
| 6387 | |
| 6388 | // fileLinkErrorWarning builds a user-facing warning when a |
| 6389 | // database error prevented linking files to a chat. |
no outgoing calls
no test coverage detected