Author: bricks Date: 2016-10-12 12:26:14 +0200 (Wed, 12 Oct 2016) New Revision: 26380
Modified: trunk/gsa/ChangeLog trunk/gsa/src/gsad_omp.c Log: * src/gsad_omp.c (create_target_omp): Improve error message if target_source is set to manual and no list of hosts is given. Modified: trunk/gsa/ChangeLog =================================================================== --- trunk/gsa/ChangeLog 2016-10-12 10:26:11 UTC (rev 26379) +++ trunk/gsa/ChangeLog 2016-10-12 10:26:14 UTC (rev 26380) @@ -1,5 +1,10 @@ 2016-10-12 Bj�rn Ricks <bjoern.ri...@greenbone.net> + * src/gsad_omp.c (create_target_omp): Improve error message if target_source + is set to manual and no list of hosts is given. + +2016-10-12 Bj�rn Ricks <bjoern.ri...@greenbone.net> + * src/gsad_omp.c (create_target_omp), * src/html/classic/omp.xsl (html-create-target-form): Use "0" as default for empty value instead of "--". Modified: trunk/gsa/src/gsad_omp.c =================================================================== --- trunk/gsa/src/gsad_omp.c 2016-10-12 10:26:11 UTC (rev 26379) +++ trunk/gsa/src/gsad_omp.c 2016-10-12 10:26:14 UTC (rev 26380) @@ -9688,7 +9688,7 @@ CHECK_PARAM_INVALID (target_source, "Create Target", "new_target") if (hosts == NULL && strcmp (target_source, "manual") == 0) return message_invalid (credentials, params, response_data, - "Given target_source was invalid", + "Missing manual list of hosts", G_STRINGIFY (MHD_HTTP_BAD_REQUEST), "Create Target", "new_target"); if (strcmp (target_source, "import") == 0 && name == NULL)
_______________________________________________ Openvas-commits mailing list Openvas-commits@wald.intevation.org https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-commits