osmodumpdoc: print called commands and OSError messages
Change-Id: Ib044cbb8a1b8e02cbe6852f785c75b5c7aae6174
This commit is contained in:
parent
8e4806c5f2
commit
a784f2407b
|
@ -42,9 +42,11 @@ def dump_configs(apps, configs, confpath):
|
||||||
print "Starting app for %s" % appname
|
print "Starting app for %s" % appname
|
||||||
proc = None
|
proc = None
|
||||||
cmd = [app[1], "-c", os.path.join(confpath, configs[appname][0])]
|
cmd = [app[1], "-c", os.path.join(confpath, configs[appname][0])]
|
||||||
|
print 'cd', os.path.abspath(os.path.curdir), ';', ' '.join(cmd)
|
||||||
try:
|
try:
|
||||||
proc = subprocess.Popen(cmd, stdin=None, stdout=None)
|
proc = subprocess.Popen(cmd, stdin=None, stdout=None)
|
||||||
except OSError: # Probably a missing binary
|
except OSError as e: # Probably a missing binary
|
||||||
|
print >> sys.stderr, e
|
||||||
print >> sys.stderr, "Skipping app %s" % appname
|
print >> sys.stderr, "Skipping app %s" % appname
|
||||||
failures += 1
|
failures += 1
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue