title: How to display last command that failed when using bash set -e?
body: <p>I am using <code>set -e</code> to stop execution of a script on first error.</p>
  
  <p>The problem is that this does not tell me what went wrong.</p>
  
  <p>How can update a bash script so it will display me the last command that failed?</p>