X-Git-Url: http://git.datanom.net/omvzfs.git/blobdiff_plain/503ffcc8df9da14d4002f02f02b67face4e7edaf..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;