fixed clang support
rid of ErrorResult from code