diff --git a/core/lib/Thelia/Command/ModuleGenerateModelCommand.php b/core/lib/Thelia/Command/ModuleGenerateModelCommand.php index 41638414e..0b278973e 100644 --- a/core/lib/Thelia/Command/ModuleGenerateModelCommand.php +++ b/core/lib/Thelia/Command/ModuleGenerateModelCommand.php @@ -63,7 +63,7 @@ class ModuleGenerateModelCommand extends BaseModuleGenerate { $fs = new Filesystem(); if ($fs->exists($this->moduleDirectory) === false) { - throw new \RuntimeException(sprintf("%s module does not exists")); + throw new \RuntimeException(sprintf("%s module does not exists", $this->module)); } if ($fs->exists($this->moduleDirectory . DS . "Config" . DS . "schema.xml") === false) { diff --git a/core/lib/Thelia/Command/ModuleGenerateSqlCommand.php b/core/lib/Thelia/Command/ModuleGenerateSqlCommand.php index 113e3288f..0f8cad20e 100644 --- a/core/lib/Thelia/Command/ModuleGenerateSqlCommand.php +++ b/core/lib/Thelia/Command/ModuleGenerateSqlCommand.php @@ -55,7 +55,7 @@ class ModuleGenerateSqlCommand extends BaseModuleGenerate { $fs = new Filesystem(); if ($fs->exists($this->moduleDirectory) === false) { - throw new \RuntimeException(sprintf("%s module does not exists")); + throw new \RuntimeException(sprintf("%s module does not exists", $this->module)); } if ($fs->exists($this->moduleDirectory . DS . "Config" . DS . "schema.xml") === false) {