generator.py fails silently if you specify an invalid --type #12765
Labels
:Generator
Related to code generators for building custom Beats or modules.
Team:Integrations
Label for the Integrations team
For confirmed bugs, please report:
Since
fakebeat
doesn't exist, nothing happens. The script exits zero, no message is printed.This is presumably because the python script is iterating over a directory that doesn't exist:
According to the pydoc,
os.walk
will ignore errors by default. We should either specify some error handling foros.walk
, or check the validity of the type before hand.The text was updated successfully, but these errors were encountered: