Nzubechukwu.
← All posts
Software engineering4 min read

The bug that taught me to read error messages properly

A three-line error sat in my logs for a week. It told me exactly what was wrong. I just never read past the first line.

By Nzubechukwu Cyprian · Pharmacy student at UNN, full-stack developer

Generative cover art for the post “The bug that taught me to read error messages properly”

I once lost the better part of a week to a bug whose answer was on screen the whole time. The error message had four lines. I read the first one, pattern-matched it to a Stack Overflow post, and tried that fix eleven times. The answer was on line three.

Line three said the file couldn't be found at the path I was constructing — and the path in the message was wrong in a way that pointed straight at a missing directory. Eleven attempts at the wrong fix, because line one looked familiar.

What I do differently now

  • read the entire error before touching code, out loud if it's a bad day
  • find the most specific sentence — usually the last line, not the first
  • reproduce before fixing; a fix that can't be reproduced can't be trusted
  • write down the hypothesis in one sentence before testing it

Why this is a skill, not an instinct

Reading errors carefully is emotionally expensive. The message is evidence that your work is broken, and the brain wants that discomfort over fast. Skimming feels like progress. It's avoidance with a keyboard.

The best debugging habit I know is unglamorous: slow down at the exact moment you want to speed up.

Nzubechukwu Cyprian studies Pharmacy at the University of Nigeria, Nsukka and builds software, products, and AI experiments in between.