mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-13 14:34:33 +00:00
chore(userspace/falco): correct exception message
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
parent
a1bdf3ed61
commit
0a14d34e16
@ -37,7 +37,7 @@ void falco::outputs::output_grpc::output(const message *msg)
|
|||||||
falco::schema::source s = falco::schema::source::SYSCALL;
|
falco::schema::source s = falco::schema::source::SYSCALL;
|
||||||
if(!falco::schema::source_Parse(msg->source, &s))
|
if(!falco::schema::source_Parse(msg->source, &s))
|
||||||
{
|
{
|
||||||
throw falco_exception("Unknown source passed to output_grpc::output_event()");
|
throw falco_exception("Unknown source passed to output_grpc::output()");
|
||||||
}
|
}
|
||||||
grpc_res.set_source(s);
|
grpc_res.set_source(s);
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ void falco::outputs::output_grpc::output(const message *msg)
|
|||||||
falco::schema::priority p = falco::schema::priority::EMERGENCY;
|
falco::schema::priority p = falco::schema::priority::EMERGENCY;
|
||||||
if(!falco::schema::priority_Parse(falco_common::priority_names[msg->priority], &p))
|
if(!falco::schema::priority_Parse(falco_common::priority_names[msg->priority], &p))
|
||||||
{
|
{
|
||||||
throw falco_exception("Unknown priority passed to output_grpc::output_event()");
|
throw falco_exception("Unknown priority passed to output_grpc::output()");
|
||||||
}
|
}
|
||||||
grpc_res.set_priority(p);
|
grpc_res.set_priority(p);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user