Opened 14 years ago

Closed 14 years ago

#2325 closed enhancement (fixed)

Sliderule custom scale trap errors

Reported by: tonyforster Owned by: walter
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Sliderule Version: Unspecified
Severity: Unspecified Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

Trap errors and give some feedback, eg onscreen display of error text
untrapped errors:

Syntax error: unexpected EOF (can't replicate)

Type error: unsupported operand types

  • none and int (log where min =0) + int and string (int(x)+".0") hex() argument cant be converted (real x)

Change History (7)

comment:1 Changed 14 years ago by walter

See http://bugs.sugarlabs.org/attachment/ticket/2326/Sliderule-17.xo

I do the error handling differently now so I can catch them and display them.

comment:2 Changed 14 years ago by tonyforster

Still getting Syntax error: unexpected EOF
eg position function = log(x,10)/

comment:3 Changed 14 years ago by walter

Ooops. Forgot to look for Syntax Errors... easy enough to add.

comment:5 Changed 14 years ago by tonyforster

  • Resolution set to fixed
  • Status changed from new to closed

comment:6 Changed 14 years ago by tonyforster

  • Resolution fixed deleted
  • Status changed from closed to reopened

Attribute error:
when entering a formula into step 1/1.6

comment:7 Changed 14 years ago by walter

  • Resolution set to fixed
  • Status changed from reopened to closed

This is actually two bugs: (1) a bug I introduced in creating the second custom slide; and (2) a problem on that I currently don't allow anything but numbers in the min, max, and step fields. The attachment with #2326 fixes #1. #2 is really a new feature request, not relevant to this ticket.

Note: See TracTickets for help on using tickets.