From: Kevin Day Date: Sun, 11 Mar 2012 05:30:11 +0000 (-0600) Subject: Bugfix: set error code to invalid parameter when parameters are missing X-Git-Tag: 0.3.0~89 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=d09236dcc55e9674ba0c76886b3ca472dfae3dc1;p=fll Bugfix: set error code to invalid parameter when parameters are missing --- diff --git a/level_3/fss_basic_list_read/c/fss_basic_list_read.c b/level_3/fss_basic_list_read/c/fss_basic_list_read.c index 5eca541..a062363 100644 --- a/level_3/fss_basic_list_read/c/fss_basic_list_read.c +++ b/level_3/fss_basic_list_read/c/fss_basic_list_read.c @@ -295,6 +295,7 @@ extern "C"{ } // for } else { fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: you failed to specify one or more files"); + status = f_invalid_parameter; } fss_basic_list_read_delete_data(data); diff --git a/level_3/fss_basic_read/c/fss_basic_read.c b/level_3/fss_basic_read/c/fss_basic_read.c index 5b61a11..58a81fa 100644 --- a/level_3/fss_basic_read/c/fss_basic_read.c +++ b/level_3/fss_basic_read/c/fss_basic_read.c @@ -287,6 +287,7 @@ extern "C"{ } } else { fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: you failed to specify one or more files"); + status = f_invalid_parameter; } fss_basic_read_delete_data(data); diff --git a/level_3/fss_extended_read/c/fss_extended_read.c b/level_3/fss_extended_read/c/fss_extended_read.c index eefbf47..e5dde61 100644 --- a/level_3/fss_extended_read/c/fss_extended_read.c +++ b/level_3/fss_extended_read/c/fss_extended_read.c @@ -294,6 +294,7 @@ extern "C"{ } // for } else { fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: you failed to specify one or more files"); + status = f_invalid_parameter; } fss_extended_read_delete_data(data);