Ticket #5203: simple_error.patch

File simple_error.patch, 522 bytes (added by jscipione, 12 years ago)

on error just print "error" instead of printing the specific error message

  • src/apps/deskcalc/CalcView.cpp

     
    910910        ExpressionParser parser;
    911911        value = parser.Evaluate(expression.String());
    912912    } catch (ParseException e) {
    913         BString error(e.message.String());
    914         error << " at " << (e.position + 1);
    915         fExpressionTextView->SetText(error.String());
     913        fExpressionTextView->SetText("error");
    916914        return;
    917915    }
    918916