mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
fix for crash when specifying an unwriteable file to --profile-scripts (GH-2645)
This commit is contained in:
parent
83a6faec3c
commit
7bf87b6347
1 changed files with 4 additions and 1 deletions
|
@ -177,7 +177,10 @@ void activate_script_profiling(const char* fn)
|
||||||
{
|
{
|
||||||
f = fopen(fn, "w");
|
f = fopen(fn, "w");
|
||||||
if ( ! f )
|
if ( ! f )
|
||||||
reporter->FatalError("can't open %s to record scripting profile", fn);
|
{
|
||||||
|
fprintf(stderr, "ERROR: Can't open %s to record scripting profile\n", fn);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
f = stdout;
|
f = stdout;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue