Skip to content

Commit

Permalink
Merge pull request #1684 from greenbone/mergify/bp/gvmd-21.04/pr-1683
Browse files Browse the repository at this point in the history
Log warning if --rebuild-gvmd-data fails (backport #1683)
  • Loading branch information
timopollmeier authored Sep 8, 2021
2 parents c77c1a9 + 7ec3e42 commit 70cb2d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [21.4.4] - Unreleased
### Added
- Add --rebuild-gvmd-data command line option [#1680](https://github.com/greenbone/gvmd/pull/1680)
- Add --rebuild-gvmd-data command line option [#1680](https://github.com/greenbone/gvmd/pull/1680) [#1683](https://github.com/greenbone/gvmd/pull/1683)

### Changed
### Deprecated
Expand Down
4 changes: 3 additions & 1 deletion src/gvmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2522,13 +2522,15 @@ gvmd (int argc, char** argv)
log_config,
&database,
&error_msg);
log_config_free ();
if (ret)
{
g_warning ("Failed to rebuild gvmd data: %s\n", error_msg);
printf ("Failed to rebuild gvmd data: %s\n", error_msg);
g_free (error_msg);
log_config_free ();
return EXIT_FAILURE;
}
log_config_free ();
return EXIT_SUCCESS;
}

Expand Down

0 comments on commit 70cb2d7

Please sign in to comment.