Changeset 51b4061 in rtems-source-builder


Ignore:
Timestamp:
Apr 13, 2013, 12:41:00 AM (6 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
7ed2835
Parents:
376aabf
Message:

Provide a better error message.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/check.py

    r376aabf r51b4061  
    115115            (test, constraint, value) = opts.defaults.get(d)
    116116        except:
    117             raise error.general('invalid default: %s [%r]' % (d, opts.defaults.get(d)))
     117            if opts.defaults.get(d) is None:
     118                raise error.general('invalid default: %s: not found' % (d))
     119            else:
     120                raise error.general('invalid default: %s [%r]' % (d, opts.defaults.get(d)))
    118121        if test != 'none':
    119122            value = opts.defaults.expand(value)
Note: See TracChangeset for help on using the changeset viewer.