Print full error when failing the copy of resolv.conf
This commit is contained in:
parent
03c2b7f526
commit
64ca3857c3
@ -59,11 +59,12 @@ def run():
|
||||
if source_resolv != target_resolv and os.path.exists(source_resolv):
|
||||
try:
|
||||
os.remove(target_resolv)
|
||||
except FileNotFoundError:
|
||||
libcalamares.utils.debug("Couldn't remove {}".format(target_resolv))
|
||||
except Error as err:
|
||||
libcalamares.utils.debug("Couldn't remove {}: {}".format(target_resolv, err))
|
||||
|
||||
try:
|
||||
shutil.copy(source_resolv, target_resolv)
|
||||
except FileNotFoundError:
|
||||
libcalamares.utils.debug("Can't copy resolv.conf from {}".format(source_resolv))
|
||||
except Error as err:
|
||||
+ libcalamares.utils.debug("Can't copy resolv.conf from {}: {}".format(source_resolv, err))
|
||||
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user