]> git.proxmox.com Git - pve-manager.git/commit - PVE/API2/VZDump.pm
Fix #1015: vzdump: send email on early errors
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 6 Jun 2016 10:17:47 +0000 (12:17 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 6 Jun 2016 11:38:35 +0000 (13:38 +0200)
commit403761c43e8f8d0000e37d4b6b9f037f0939a252
tree9d80c5b60bb0b9119f42ceb9f94ec9b7053cc0cf
parent2f85c89882e08d91d8a40131a2c8e4dac21d0e58
Fix #1015: vzdump: send email on early errors

VZDump->new() dies when a tmpdir or dumpdir is configured
but does not exist. At this point the error is not being
reported via email.

This also moves the instantiation of VZDump into the worker
since new() can now call sendmail() on error.

Additionally rather than only showing a single error if both
tmpdir and dumpdir don't exist, both are included in the
message.
PVE/API2/VZDump.pm
PVE/VZDump.pm