]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: virDomainMemoryDefValidate: Improve error message v8.5.0-rc2
authorLiu Yiding <liuyd.fnst@fujitsu.com>
Tue, 28 Jun 2022 03:53:35 +0000 (11:53 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 28 Jun 2022 10:33:38 +0000 (12:33 +0200)
commit0dd1fdae2e9f8a3e2ca8cd4c2aa5f475146d9623
tree9c6cd710a88baf07e5888f22e043072c90e9c414
parent088e92e0ccb5b3aa73c3fd06b7e8b76655792815
conf: virDomainMemoryDefValidate: Improve error message

An explicit limit would be more user friendly. Add the limit to error message.

Before this commit:
```
error: requested size must be smaller than or equal to @size
```

Now:
```
error: requested size must be smaller than or equal to @size (8388608KiB)
```

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_validate.c