diff options
author | sbc@chromium.org <sbc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 17:36:37 +0000 |
---|---|---|
committer | sbc@chromium.org <sbc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 17:36:37 +0000 |
commit | 7e6640844ffca6583bee73df4496ace16f70de29 (patch) | |
tree | 04e7e28223d9a50146a329293e1aea8a4a9df524 /native_client_sdk | |
parent | 282df2c9e04619ce87d0b1f158a3aa841304167a (diff) | |
download | chromium_src-7e6640844ffca6583bee73df4496ace16f70de29.zip chromium_src-7e6640844ffca6583bee73df4496ace16f70de29.tar.gz chromium_src-7e6640844ffca6583bee73df4496ace16f70de29.tar.bz2 |
[NaCl SDK] create_nmf: don't error out on missing libpaths
Reduce this new error to simply a warning do that we don't
break users who include missing library paths on the
command line.
BUG=None
R=binji@chromium.org
Review URL: https://codereview.chromium.org/15853004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203174 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk')
-rwxr-xr-x | native_client_sdk/src/tools/create_nmf.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/native_client_sdk/src/tools/create_nmf.py b/native_client_sdk/src/tools/create_nmf.py index 5cf2e147..75816b1 100755 --- a/native_client_sdk/src/tools/create_nmf.py +++ b/native_client_sdk/src/tools/create_nmf.py @@ -666,10 +666,10 @@ def main(argv): DebugPrint.debug_mode = True if options.toolchain is not None: - print 'warning: option -t/--toolchain is deprecated.' + sys.stderr.write('warning: option -t/--toolchain is deprecated.\n') if len(args) < 1: - raise Error('No nexe files specified. See --help for more info') + parser.error('No nexe files specified. See --help for more info') canonicalized = ParseExtraFiles(options.extra_files, sys.stderr) if canonicalized is None: @@ -679,7 +679,7 @@ def main(argv): for ren in options.name: parts = ren.split(',') if len(parts) != 2: - raise Error('Expecting --name=<orig_arch.so>,<new_name.so>') + parser.error('Expecting --name=<orig_arch.so>,<new_name.so>') remap[parts[0]] = parts[1] if options.path_prefix: @@ -689,9 +689,9 @@ def main(argv): for libpath in options.lib_path: if not os.path.exists(libpath): - raise Error('Specified library path does not exist: %s' % libpath) - if not os.path.isdir(libpath): - raise Error('Specified library is not a directory: %s' % libpath) + sys.stderr.write('Specified library path does not exist: %s\n' % libpath) + elif not os.path.isdir(libpath): + sys.stderr.write('Specified library is not a directory: %s\n' % libpath) if not options.no_default_libpath: # Add default libraries paths to the end of the search path. |