mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
win_msg: added doc about msg limit and included an explicit check for better error handling (#31078)
This commit is contained in:
parent
44f5b2bd25
commit
67fd98da09
3 changed files with 11 additions and 0 deletions
|
@ -36,6 +36,10 @@ $result = @{
|
|||
wait = $wait
|
||||
}
|
||||
|
||||
if ($msg.Length -gt 255) {
|
||||
Fail-Json -obj $result -message "msg length must be less than 256 characters, current length: $($msg.Length)"
|
||||
}
|
||||
|
||||
$msg_args = @($to, "/TIME:$display_seconds")
|
||||
|
||||
if ($wait) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue