output error details when something wrong in the script to be evaluate