Changeset 6c79a16 in rtems-tools


Ignore:
Timestamp:
May 20, 2019, 11:24:27 AM (5 weeks ago)
Author:
Vijay Kumar Banerjee <vijaykumar9597@…>
Branches:
master
Children:
d7979de
Parents:
9f197de
git-author:
Vijay Kumar Banerjee <vijaykumar9597@…> (05/20/19 11:24:27)
git-committer:
Chris Johns <chrisj@…> (05/21/19 05:53:38)
Message:

rtemstoolkit/path : print OSError in mkdir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/path.py

    r9f197de r6c79a16  
    127127            except IOError:
    128128                raise error.general('cannot make directory: %s' % (path))
    129             except OSError:
     129            except OSError as e:
     130                raise error.general('cannot make directory: %s: %s' % (path, str(e)))
     131            except WindowsError as e:
     132                raise error.general('cannot make directory: %s: %s' % (path, str(e)))
     133        else:
     134            try:
     135                os.makedirs(host(path))
     136            except IOError:
    130137                raise error.general('cannot make directory: %s' % (path))
    131             except WindowsError:
    132                 raise error.general('cannot make directory: %s' % (path))
    133         else:
    134             try:
    135                 os.makedirs(host(path))
    136             except IOError:
    137                 raise error.general('cannot make directory: %s' % (path))
    138             except OSError:
    139                 raise error.general('cannot make directory: %s' % (path))
     138            except OSError as e:
     139                raise error.general('cannot make directory: %s: %s' % (path, str(e)))
    140140
    141141def removeall(path):
Note: See TracChangeset for help on using the changeset viewer.