Commit 2c9e0473 authored by jpekka's avatar jpekka

Improved error msgs.

parent 64213f5b
......@@ -5,8 +5,6 @@ Critical bugs:
* fix crash: INT constraints support
* fix crash: MPS import when a model has already defined
* fix bug: solver parameters when the sheet is duplicated
* check that the program is properly defined (e.g. no #DIV0, #NUM!, ...)
- a badly formulated program may still crash the spreadsheet
Usability fixes:
* add warnings if data in cells is going to be overwritten
......
......@@ -306,7 +306,8 @@ lp_solver_init (Sheet *sheet, const SolverParameters *param, SolverResults *res,
if (! (target->value == NULL || VALUE_IS_EMPTY (target->value)
|| VALUE_IS_NUMBER (target->value))) {
*errmsg = _("The LHS cells should contain formulas "
"only. Specify valid LHS entries.");
"that yield proper numerical values. "
"Specify valid LHS entries.");
solver_results_free (res);
return NULL;
}
......@@ -332,8 +333,9 @@ lp_solver_init (Sheet *sheet, const SolverParameters *param, SolverResults *res,
/* Check that RHS is a number type. */
if (! (target->value == NULL || VALUE_IS_EMPTY (target->value)
|| VALUE_IS_NUMBER (target->value))) {
*errmsg = _("The RHS cells should contain numerical "
"values only. Specify valid RHS entries.");
*errmsg = _("The RHS cells should contain proper "
"numerical values only. Specify valid "
"RHS entries.");
solver_results_free (res);
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment