Add static messages on error in try/catch