Catch any importing errors.

This commit is contained in:
Chris Johns 2013-03-04 09:17:41 +11:00
parent 26595c7b29
commit c18c4b6d33
2 changed files with 26 additions and 11 deletions

View File

@ -29,11 +29,18 @@ import os
import re import re
import sys import sys
try:
import defaults import defaults
import error import error
import execute import execute
import log import log
import path import path
except KeyboardInterrupt:
print 'user terminated'
sys.exit(1)
except:
print 'unknown application load error'
sys.exit(1)
def _check_bool(value): def _check_bool(value):
if value.isdigit(): if value.isdigit():

View File

@ -28,12 +28,20 @@ import glob
import operator import operator
import os import os
try:
import build import build
import check import check
import defaults import defaults
import error import error
import log import log
import path import path
import reports
except KeyboardInterrupt:
print 'user terminated'
sys.exit(1)
except:
print 'unknown application load error'
sys.exit(1)
# #
# Version of RTEMS Source Builder Set Builder. # Version of RTEMS Source Builder Set Builder.