mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Stop execution on paraglob error.
This commit is contained in:
parent
145bfe50af
commit
bd605bfc3a
1 changed files with 4 additions and 3 deletions
|
@ -802,7 +802,8 @@ function paraglob_init%(v: any%) : opaque of paraglob
|
|||
if ( v->Type()->Tag() != TYPE_VECTOR ||
|
||||
v->Type()->YieldType()->Tag() != TYPE_STRING )
|
||||
{
|
||||
builtin_error("paraglob requires a vector of strings for initialization.");
|
||||
// reporter->Error will throw an exception.
|
||||
reporter->Error("paraglob requires a vector of strings for initialization.");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -822,8 +823,8 @@ function paraglob_init%(v: any%) : opaque of paraglob
|
|||
// Thrown if paraglob fails to add a pattern.
|
||||
catch (const paraglob::add_error& e)
|
||||
{
|
||||
builtin_error(e.what());
|
||||
return nullptr;
|
||||
reporter->Error(e.what());
|
||||
return nullptr;
|
||||
}
|
||||
%}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue