Pass command line info to CreatorError in get_file_size()
authorHuang Hao <hao.h.huang@intel.com>
Mon, 18 Feb 2013 09:31:44 +0000 (17:31 +0800)
committerHuang Hao <hao.h.huang@intel.com>
Tue, 19 Feb 2013 03:41:21 +0000 (11:41 +0800)
commit0d61105f1ee7036f2b219496566c399633b16ef1
tree221966ea45cba2d256423187785fac656546a1c2
parentc5337de61651907417d755de48c1146db5c54fa6
Pass command line info to CreatorError in get_file_size()

Variable "du" does not exist, so pass the command line to error.

Change the local var name "file" to "filename" to avoid conflicting
with builtin function.

Also refactor last "if" statement to more readable max function.

Change-Id: I661e0a02db940d75a8180c3215f95d5ff1ae8802
mic/utils/misc.py