Work effectively with AI coding agents. Understand them as language models running in a tool loop with limited context, which is why they guess, game the visible signal and report confidently. Recognise the shortcut and correctness tells in their code across Python, TypeScript/JavaScript, Rust, Java and Go, and know the damage each one does later. Verify changes instead of trusting them, review diffs fast for quality and security, judge when work is truly finished, and choose, design and steer tasks so agents can finish them well.
Errors swallowed by catch-all handlers card 6 of 6

Who learns it failed?

builds on: Error handling idioms across languages, Agents optimise the signal they can see
A handler that neither reports the error nor deliberately recovers from it turns a loud failure into a quiet false success. For every catch, `err` check or `.ok()` in the diff, ask two questions: who learns this failed, and what was left half-done?
Terms on this card
.ok()
Rust method turning `Result<T, E>` into `Option<T>`: `Ok(v)` becomes `Some(v)`, and `Err(e)` becomes `None`, discarding `e`.
the diff
The change under review in unified diff format: '-' lines removed, '+' lines added, unprefixed lines are unchanged context.
diff
The set of line changes between two versions of the code: removed lines start with '-', added lines with '+'.
handler
The function that receives an HTTP request and produces the response. It is where request data first enters your code.
Learn this step by step on Bytewise
Lesson goal: Spot `except Exception: pass`, an empty `catch (e) {}`, Java's `catch (Exception e) { e.printStackTrace(); }`, Go's `_ = err` or `if err != nil { return nil }`, and Rust's `.ok()` discarding errors. Explain the later cost: failures become invisible and state is left half-updated. · the whole lesson