---
title: "Discussion on \"Code Smell 97 - Error Messages Without Empathy\" | Hashnode"
description: "Discussion on \"Code Smell 97 - Error Messages Without Empathy\". We should take special care with error descriptions for the users (and ourselves).\n\nTL;DR: Use meaningful descriptions and suggest corrective actions.\n\nProblems\n\nThe Least Surprise Principle\n\nSolutions\n\nUse declarative error messages\n\nShow clear exit..."
url: "https://hashnode.com/posts/code-smell-97-error-messages-without-empathy/6178c160913b6d3f08e15892"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Code Smell 97 - Error Messages Without Empathy](https://maximilianocontieri.com/code-smell-97-error-messages-without-empathy?utm_source=hashnode&utm_medium=feed)

We should take special care with error descriptions for the users (and ourselves). TL;DR: Use meaningful descriptions and suggest corrective actions. Problems The Least Surprise Principle Solutions Use declarative error messages Show clear exit...

Oct 27, 2021 · 1 min read · maximilianocontieri.com  
Updated Oct 28, 2021  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#code-smell-1](https://hashnode.com/tag/code-smell-1)
-   [#clean-code](https://hashnode.com/tag/clean-code)
-   [#ux](https://hashnode.com/tag/ux)
-   [#ui-ux-designer](https://hashnode.com/tag/ui-ux-designer)

## Written by

[Maxi Contieri](https://hashnode.com/@mcsee)

@mcsee · Buenos Aires

  
[View profile](https://hashnode.com/@mcsee)

Software Engineer

I’m a senior software engineer loving clean code, and declarative designs. S.O.L.I.D. and agile methodologies fan.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
