fix: name the extension as the reason read_s3_file skips a file

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Guilhem Lemouel
2026-12-01 04:03:10 -08:00
co-authored by Claude Opus 5.5
parent 43a2f66832
commit 9474ddab97
@@ -256,7 +256,7 @@ async fn read_s3_file(ctx: &Ctx<'_>, args: &Value) -> ToolResult {
// could not see the file either, even while it is open in the side panel.
let reason = match preview["msg"].as_str() {
Some(m) if m.starts_with("Preview is not available") => {
"it is not a text, table or image file"
"it does not read files with this extension"
}
Some(m) => m,
None => "the server returned no content",