lib.ExecApp: Add class #76
1 changed files with 1 additions and 1 deletions
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>
commit
91c7d8436e
|
|
@ -560,7 +560,7 @@ class ExecContext(Base):
|
|||
await self.erase(tmp_file)
|
||||
await self.close()
|
||||
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:
|
||||
raise Exception(msg)
|
||||
log(ERR, msg)
|
||||
|
|
|
|||
Loading…
Reference in a new issue