|
|
@@ -1798,7 +1798,11 @@ class SiteController extends ActionController
|
|
|
|
|
|
$yamlConfig = Yaml::dump($config, 99, 2);
|
|
|
|
|
|
- $this->mkDir($configDir);
|
|
|
+ try {
|
|
|
+ $this->mkDir($configDir);
|
|
|
+ } catch (\Exception $e) {
|
|
|
+ throw new RuntimeException('Unable to create the directory ' . $configDir, 0, $e);
|
|
|
+ }
|
|
|
$this->writeFile($configFilename, $yamlConfig);
|
|
|
|
|
|
// ## Update the ot_website identifier
|