Keep error info from exception URLGrabError.
authorHuang Hao <hao.h.huang@intel.com>
Thu, 28 Feb 2013 03:37:19 +0000 (11:37 +0800)
committerGerrit Code Review <gerrit2@otctools.jf.intel.com>
Thu, 28 Feb 2013 06:59:12 +0000 (22:59 -0800)
commit7673e6b909d58d0cd87fd80a906bdd438353ec4e
treedf6eabcfc9df8e6270b89c1d40dec740e801f612
parent3d552a40bcfebe2975ed256e57d480434f94e1b5
Keep error info from exception URLGrabError.

The origianl URLGrabError exception contains useful information
describing detail of the error, such as errno and http error
code.

However in some situation it doesn't include url address. So append
it if not appear.

Examples of console output before:
    Error <creator>: URLGrabber error: https://xxxx
    Error <creator>: URLGrabber error: https://xxxx

We can't find out difference from those two message.
After:
    Error <creator>: [Errno 14] HTTP Error 401 : https://xxxx
    Error <creator>: [Errno 14] problem making ssl connection on https://xxxx

Change-Id: I3f153e4caf8bbfcbac56ca22118733de7c5a3e66
mic/utils/grabber.py