Expressions lacking all variables should give a better error message

Bug #1063841 reported by Patrick Farrell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DOLFIN
Fix Released
Undecided
Unassigned

Bug Description

When a user creates an Expression but doesn't specify all variables:

from dolfin import *
a = Expression("a")

one gets an error message:

RuntimeError: expected a default value to all member variables in the Expression.

but it can be a lot of work to figure out which one is missing, especially if your expression is very complicated.

With the attached patch, the error message is much more useful:

RuntimeError: expected a default value to all member variables in the Expression: missing ['a']

Related branches

Revision history for this message
Patrick Farrell (pefarrell) wrote :
Johan Hake (johan-hake)
Changed in dolfin:
status: New → In Progress
Johan Hake (johan-hake)
Changed in dolfin:
status: In Progress → Fix Committed
Changed in dolfin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.