set error message when method not found