Client-side method invoke example, better error messages in lambda err