diff --git a/src/middlewared/middlewared/plugins/disk_/sed.py b/src/middlewared/middlewared/plugins/disk_/sed.py index 2728bc2d580d3..dbaa62b9ebb95 100644 --- a/src/middlewared/middlewared/plugins/disk_/sed.py +++ b/src/middlewared/middlewared/plugins/disk_/sed.py @@ -61,9 +61,11 @@ async def parse_unlock_info(self, info): # means disk supports SED and we failed to unlock # the disk (either bad password or unhandled error) if info.query_cp and info.query_cp.returncode: - errmsg += f' QUERY ERROR: {info.query_cp.stderr.decode(errors="ignore")!r}' + errmsg += f' QUERY ERROR {info.query_cp.returncode}: {info.query_cp.stderr.decode(errors="ignore")!r}' if info.unlock_cp and info.unlock_cp.returncode: - errmsg += f' UNLOCK ERROR: {info.unlock_cp.stderr.decode(errors="ignore")!r}' + errmsg += ( + f' UNLOCK ERROR {info.unlock_cp.returncode}: {info.unlock_cp.stderr.decode(errors="ignore")!r}' + ) self.logger.warning(errmsg) if info.mbr_cp and info.mbr_cp.returncode: