<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Arnaud</title>
    <description>The latest articles on DEV Community by Arnaud (@arnauddevto).</description>
    <link>https://dev.to/arnauddevto</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F762940%2F63082805-79e0-43d8-9a8d-3c2d808d03b0.jpg</url>
      <title>DEV Community: Arnaud</title>
      <link>https://dev.to/arnauddevto</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arnauddevto"/>
    <language>en</language>
    <item>
      <title>Write Better Error Messages in 3 Minutes</title>
      <dc:creator>Arnaud</dc:creator>
      <pubDate>Thu, 03 Apr 2025 06:02:24 +0000</pubDate>
      <link>https://dev.to/arnauddevto/write-better-error-messages-in-3-minutes-34n9</link>
      <guid>https://dev.to/arnauddevto/write-better-error-messages-in-3-minutes-34n9</guid>
      <description>&lt;p&gt;When something goes wrong in your app or website, a clear, helpful, and empathetic error message can make all the difference for your users. Nobody likes facing a mysterious “Oops! Something went wrong,” with no clue why it happened or how to fix it. Here are the essentials for crafting better error messages.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common mistakes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Inappropriate tone&lt;/strong&gt;, “Oopsie daisy!” might sound fun, but if your user’s work is at stake, it feels dismissive. Respect your user’s time and emotional state.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Technical jargon&lt;/strong&gt;, telling a non-techie about an “HTTP 500 Internal Server Error” is like speaking another language. Keep it simple and understandable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Passing the blame&lt;/strong&gt;, users don’t care which server is at fault. They just want a solution. Shift from pointing fingers to offering help.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Empty or generic statements&lt;/strong&gt;, “Something went wrong” says nothing. If you know the cause, say it. If you don’t, at least show you’re on the case.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo1lxmdwpf457euu1mt5q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo1lxmdwpf457euu1mt5q.png" alt="bad error message" width="551" height="267"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to fix this
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Say What Happened&lt;/strong&gt; (In Plain Language)

&lt;ul&gt;
&lt;li&gt;Example: “We couldn’t load your profile.” instead of “An unexpected error occurred.”&lt;/li&gt;
&lt;li&gt;Be specific about which action failed so users know exactly what’s going on.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Show Empathy and Offer Reassurance&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;“We’re sorry you’re running into trouble. Your draft changes are saved.”&lt;/li&gt;
&lt;li&gt;Acknowledge how the issue affects them. Demonstrate you’re on their side.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explain Why&lt;/strong&gt; (If You Can)

&lt;ul&gt;
&lt;li&gt;Even a brief reason helps, like: “We had a technical glitch on our end. Please try again.”&lt;/li&gt;
&lt;li&gt;It builds trust when you give context.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Provide a Path Forward&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Nothing worse than just a dead-end button “Dismiss"&lt;/li&gt;
&lt;li&gt;Offer an immediate step: “Click ‘Reconnect Account’ to try again.”&lt;/li&gt;
&lt;li&gt;Provide contact info or a button for more help: “If this keeps happening, report us the issue here.”&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhulj0qfl588xpho09xsx.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhulj0qfl588xpho09xsx.jpg" alt="Good and bad error message" width="800" height="512"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Power of Good Error Messages
&lt;/h2&gt;

&lt;p&gt;Every error message is a chance to build (or break) trust. By crafting clear, empathetic, and action-oriented messages, you show users that you respect their time, understand their frustration, and are committed to fix weakness of your app as soon as possible.&lt;br&gt;
All in a few words, you can guide them to the solution—and keep their confidence in your product.&lt;br&gt;
So the next time you need to deliver bad news in your app or website, remember: clarity, empathy, a helpful next step, and the right tone can transform frustration into a moment of reassurance.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>frontend</category>
    </item>
  </channel>
</rss>
