mirror of https://git.48k.eu/ogclient
live: refine existing logging
- suggest to check permissions in samba folder - fix typo, s/filesyste/filesystem/master
parent
32673cf337
commit
9beb55894d
|
@ -444,7 +444,7 @@ class OgLiveOperations:
|
|||
cambiar_acceso(user=self._smb_user, pwd=self._smb_pass)
|
||||
|
||||
if os.access(f'/opt/opengnsys/images', os.R_OK | os.W_OK) == False:
|
||||
logging.error('Cannot open /opt/opengnsys/images')
|
||||
logging.error('Cannot access /opt/opengnsys/images in read and write mode, check permissions')
|
||||
raise ValueError('Cannot access image folder')
|
||||
|
||||
if os.access(f'{image_path}', os.R_OK) == True:
|
||||
|
@ -489,7 +489,7 @@ class OgLiveOperations:
|
|||
except:
|
||||
self._restartBrowser(self._url)
|
||||
logging.exception('Exception when running "image create" subprocess')
|
||||
raise ValueError(f'Error: Cannot create image for {fstype} filesyste in device {padev}')
|
||||
raise ValueError(f'Error: Cannot create image for {fstype} filesystem in device {padev}')
|
||||
|
||||
try:
|
||||
st = os.stat(image_path)
|
||||
|
|
Loading…
Reference in New Issue