Skip to content

VBC-013: empty-catch ​

error

Category: core
Analysis: AST
Tags: robustness

What it reports ​

Empty catch block detected at line {line}. Swallowing errors makes debugging impossible.

Flagged ​

ts
try { risky(); } catch (error) {}

Not flagged ​

ts
try { risky(); } catch (error) { report(error); }
ts
try { risky(); } catch (error) { /* nothing to do here */ }

AST check ​

  • Type: empty-catch

Released under the MIT License.