From: Jason Stover Date: Tue, 15 May 2007 20:39:42 +0000 (+0000) Subject: Issue an error if no valid data are found X-Git-Tag: v0.6.0~467 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4810d3c8656b3b3ab26303d2dae70fc361db7fb;p=pspp-builds.git Issue an error if no valid data are found --- diff --git a/po/pspp.pot b/po/pspp.pot index 754e5c57..49e4eb67 100644 --- a/po/pspp.pot +++ b/po/pspp.pot @@ -3256,6 +3256,10 @@ msgstr "" msgid "Dependent variable must be numeric." msgstr "" +#: src/language/stats/regression.q:1320 +msgid "No valid data found. This command was skipped." +msgstr "" + #: src/language/stats/sort-cases.c:63 msgid "Buffer limit must be at least 2." msgstr "" diff --git a/src/language/stats/ChangeLog b/src/language/stats/ChangeLog index c55b8fb0..c3cb4fad 100644 --- a/src/language/stats/ChangeLog +++ b/src/language/stats/ChangeLog @@ -1,3 +1,8 @@ +2007-05-15 Jason Stover + + * regression.q (run_regression): Tell the user when the data + contain no valid cases. + 2007-05-08 Jason Stover * regression.q: Partial fix of bug which caused a crash if diff --git a/src/language/stats/regression.q b/src/language/stats/regression.q index 37b3b48d..e10b8962 100644 --- a/src/language/stats/regression.q +++ b/src/language/stats/regression.q @@ -1315,6 +1315,10 @@ run_regression (const struct ccase *first, free (lopts.get_indep_mean_std); casereader_destroy (r); } + else + { + msg (SE, gettext ("No valid data found. This command was skipped.")); + } } for (i = 0; i < n_variables; i++) {