As a best practice, we recommend displaying a better message to your user than “An unhandled fault has occurred in this flow”. Do this only if the distribution method you’re using supports flows that contain screens. In other words, don’t do it if your flow is distributed through a process.
|Available in: both Salesforce Classic and Lightning Experience|
|Available in: Enterprise, Performance, Unlimited, and Developer Editions|
|To open, edit, or create a flow in the Cloud Flow Designer:||“Manage Force.com Flow”|
Create a text template that contains a friendlier error message.
<FONT FACE="Arial" STYLE="font-size:14px">
<B>Something went wrong with this flow.</B>
<P>Your admin has received an email about this error.</P>
Add a Screen element. In a Display Text field, reference the text template.
For every element that can fail, draw a fault connector to the Screen element.
In this example, Record Create is the only element that supports fault connectors. After the flow displays the better error message to the user, it sends an email to the admin with debugging information.