Add conversion of  error call to_erl