Eval with error handling