fix(copyCommand): provide friendlier error messages for /copy command (#6723)

Co-authored-by: Ben Guo <hundunben@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
Ben Guo
2025-08-23 00:58:35 +08:00
committed by GitHub
parent c4a788b7b2
commit 9c1490e985
5 changed files with 114 additions and 16 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ export const copyCommand: SlashCommand = {
return {
type: 'message',
messageType: 'error',
content: 'Failed to copy to the clipboard.',
content: `Failed to copy to the clipboard. ${message}`,
};
}
} else {