X-Git-Url: http://git.datanom.net/omvzfs.git/blobdiff_plain/a36352f77c28bdf8f2834a64bd8520b73bfcf040..42856e8b3cb0b621218f11d7828a51d03d77ae33:/src/Zpool.php diff --git a/src/Zpool.php b/src/Zpool.php index 61220a6..c8d4ae9 100644 --- a/src/Zpool.php +++ b/src/Zpool.php @@ -145,11 +145,11 @@ class OMVModuleZFSZpool extends OMVModuleAbstract $this->cache = null; $this->features = array(); if ($create_pool) { - $cmd = "zpool create $name $cmd"; + $cmd = "zpool create $name $cmd 2>&1"; OMVUtil::exec($cmd, $output, $result); if ($result) - throw new OMVModuleZFSException($output); + throw new OMVModuleZFSException(implode("\n", $output)); else { $this->name = $name; $this->type = $type;