Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit e9f08df

Browse files
Merge pull request #4 from ClickHouse-Extras/pass-unknown-exceptions
Pass unknown exceptions to the caller
2 parents 3907fd0 + 64eaf8f commit e9f08df

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/hs.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,6 @@ hs_compile_multi_int(const char *const *expressions, const unsigned *flags,
273273
*comp_error = const_cast<hs_compile_error_t *>(&hs_enomem);
274274
return HS_COMPILER_ERROR;
275275
}
276-
catch (...) {
277-
assert(!"Internal error, unexpected exception");
278-
*db = nullptr;
279-
*comp_error = const_cast<hs_compile_error_t *>(&hs_einternal);
280-
return HS_COMPILER_ERROR;
281-
}
282276
}
283277

284278
} // namespace ue2
@@ -409,11 +403,6 @@ hs_error_t hs_expression_info_int(const char *expression, unsigned int flags,
409403
*error = const_cast<hs_compile_error_t *>(&hs_enomem);
410404
return HS_COMPILER_ERROR;
411405
}
412-
catch (...) {
413-
assert(!"Internal error, unexpected exception");
414-
*error = const_cast<hs_compile_error_t *>(&hs_einternal);
415-
return HS_COMPILER_ERROR;
416-
}
417406

418407
hs_expr_info *rv = (hs_expr_info *)hs_misc_alloc(sizeof(*rv));
419408
if (!rv) {

0 commit comments

Comments
 (0)