{
  "id": 22054136,
  "title": "Ambiguous Errors Are the Mind Killer",
  "url": "https://urgent.news/2026/11/26/ambiguous-errors-are-the-mind-killer",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-26T21:23:06.000Z",
  "source": {
    "name": "Lobsters",
    "slug": "lobsters",
    "url": "https://amit.prasad.me/blog/ambiguous-errors"
  },
  "original_language": "en",
  "account": "Ambiguous errors are a pervasive issue in software development. These errors, which are represented opaquely, can be found everywhere. Examples include HTTP 500 Internal Server Error, -EINVAL, Status.INTERNAL, and {\"status\": \"error\"}. Despite being second-class citizens compared to successful return values, errors have significant consequences. Boundaries exist between applications and libraries, the operating system, and remote services. These boundaries are powerful in hiding complexity behind simple contracts, but errors crossing boundaries require precise information to act upon. There are two problematic options when dealing with ambiguous errors: reverse-engineering them or treating errors as catastrophic. Both approaches lead to problems, as ambiguous errors are viral and cause increased effort and blame. Even languages like Rust, with strong typed errors, are not immune. io::Error wraps the OS's errno, and NotFound errors from fs::remove_file are often treated as successes despite being considered failures. Typed errors should be part of the API, with new error variants considered breaking changes. Errors should encode enough meaning to help callers understand and respond appropriately. Modal encountered a variation where reinforcement learning trainers need to understand how their software fails to account for errors. Adding error contracts to models helps trainers understand and react to errors, improving resilience to upstream failures. Listing all errors from the leaves of an execution graph upwards clarifies the types of failures and helps improve software resilience.",
  "summary": null,
  "key_points": [
    "Ambiguous errors, represented opaquely, pervade software development.",
    "Errors crossing boundaries require precise information to act upon.",
    "Typed errors should be part of the API with new error variants as breaking changes."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}