Skip to content

Commit

Permalink
Fix: nasl lint error count
Browse files Browse the repository at this point in the history
  • Loading branch information
Kraemii authored and nichtsfrei committed May 2, 2022
1 parent 329d58b commit a04e220
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions nasl/nasl-lint.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,13 @@ process_file (const gchar *filepath, int mode, struct script_infos *script_args)
ret = exec_nasl_script (script_args, mode);
if (ret != 0)
{
g_print ("Error while processing %s.\n", filepath);
if (ret == -1)
return 1;
return ret;
{
g_print ("Error while processing %s.\n", filepath);
return 1;
}
g_print ("%d errors while processing %s.\n", ret, filepath);
return ret != 0;
}
return 0;
}
Expand Down

0 comments on commit a04e220

Please sign in to comment.