implement a simple trace client error function