lib.ExecContext: Fix error message in _put()
_put() catches a failure of the remote command sequence and logs "Failed to get <path> from <root>", a phrase copied over from the get() path. This path, however, pushes content, so the message describes the wrong operation. Log a put-oriented message instead. Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.84.2 Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
6e2f341b33
commit
91c7d8436e
1 changed files with 1 additions and 1 deletions
|
|
@ -560,7 +560,7 @@ class ExecContext(Base):
|
||||||
await self.erase(tmp_file)
|
await self.erase(tmp_file)
|
||||||
await self.close()
|
await self.close()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
msg = f'Failed to get {path} from {self.root} ({str(e)})'
|
msg = f'Failed to put content to {path} on {self.root} ({str(e)})'
|
||||||
if throw:
|
if throw:
|
||||||
raise Exception(msg)
|
raise Exception(msg)
|
||||||
log(ERR, msg)
|
log(ERR, msg)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue