print call and message on error