show a well formatted error message when error in client script