mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 839786 - Print a more useful message for mach clobber errors [r=gps]
This commit is contained in:
parent
a866661b90
commit
540032b8f0
@ -141,8 +141,17 @@ class Build(MachCommandBase):
|
||||
|
||||
@Command('clobber', help='Clobber the tree (delete the object directory).')
|
||||
def clobber(self):
|
||||
self.remove_objdir()
|
||||
return 0
|
||||
try:
|
||||
self.remove_objdir()
|
||||
return 0
|
||||
except WindowsError as e:
|
||||
if e.winerror in (5, 32):
|
||||
self.log(logging.ERROR, 'file_access_error', {'error': e},
|
||||
"Could not clobber because a file was in use. If the "
|
||||
"application is running, try closing it. {error}")
|
||||
return 1
|
||||
else:
|
||||
raise
|
||||
|
||||
|
||||
@CommandProvider
|
||||
|
Loading…
Reference in New Issue
Block a user