Skip to content

Commit 2fb24cf

Browse files
committed
Improve error msg
1 parent 074016a commit 2fb24cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mpssh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ async def main() -> int:
195195
)
196196
else:
197197
logging.error(
198-
f"Commands failed on hosts: {', '.join(failed_hosts)}",
198+
f"Commands failed on {len(failed_hosts)} host{'' if len(failed_hosts) == 1 else 's'}: hosts: {', '.join(failed_hosts)}",
199199
extra={"host": "all"},
200200
)
201201
return 1

0 commit comments

Comments
 (0)