Changeset 2edd4c9 in rtems-source-builder


Ignore:
Timestamp:
Apr 30, 2013, 7:30:22 PM (6 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
84924e4
Parents:
a128418
Message:

Produce a better error message if the host support code does not load.

File:
1 edited

Legend:

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

    ra128418 r2edd4c9  
    480480    overrides = None
    481481    if os.name == 'nt':
    482         import windows
    483         overrides = windows.load()
     482        try:
     483            import windows
     484            overrides = windows.load()
     485        except:
     486            raise error.general('failed to load Windows host support')
    484487    elif os.name == 'posix':
    485488        uname = os.uname()
     
    498501                overrides = linux.load()
    499502        except:
    500             pass
     503            raise error.general('failed to load %s host support' % (uname))
    501504    else:
    502505        raise error.general('unsupported host type; please add')
Note: See TracChangeset for help on using the changeset viewer.