Question · Vibe coding with Claude Code course · Module 12: Medium clone

The empty catch in the fix

The agent "fixed" the excerpt bug: it wrapped the code in try/catch, and the catch returns an empty string. What happens?

Answer options

  • Sentry gets the error twice: from the catch and from onRequestError
  • The page answers 200, nothing reaches Sentry, and a text without a paragraph has an empty excerpt: the error is hidden, not fixed
  • npm run lint rejects an empty catch, so such a fix will not pass
  • The error disappears for good, because try/catch removes its cause

You can check the correct answer by solving this task in the CodeWorlds game.