mirror of https://github.com/skygpu/skynet.git
add error logging to ipfs add func
parent
acd8ba91e5
commit
f8c744e6b4
|
@ -21,6 +21,8 @@ class IPFSDocker:
|
|||
def add(self, file: str) -> str:
|
||||
ec, out = self._container.exec_run(
|
||||
['ipfs', 'add', '-w', f'/export/{file}', '-Q'])
|
||||
if ec != 0:
|
||||
logging.error(out)
|
||||
assert ec == 0
|
||||
|
||||
return out.decode().rstrip()
|
||||
|
|
Loading…
Reference in New Issue