mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
clarified message
This commit is contained in:
parent
8867d73420
commit
62ac5c047e
1 changed files with 1 additions and 1 deletions
|
@ -892,7 +892,7 @@ class AnsibleModule(object):
|
|||
|
||||
if mode != stat.S_IMODE(mode):
|
||||
# prevent mode from having extra info orbeing invalid long number
|
||||
self.fail_json(path=path, msg="Invalid mode supplied", details=str(e))
|
||||
self.fail_json(path=path, msg="Invalid mode supplied, only permission info is allowed", details=mode)
|
||||
|
||||
prev_mode = stat.S_IMODE(path_stat.st_mode)
|
||||
|
||||
|
|
Loading…
Reference in a new issue