summaryrefslogtreecommitdiff
path: root/framework/TApplication.php
diff options
context:
space:
mode:
authorxue <>2006-03-25 22:00:48 +0000
committerxue <>2006-03-25 22:00:48 +0000
commitdbf96121469b00c070b95095dcae2b1c408581dc (patch)
tree3ed37a37ead906c88e1c680213d57aae7c48d464 /framework/TApplication.php
parent686805ddf0f760e2c30ff8aa02994daf9fd386fa (diff)
Added more meaningful error message when creating runtime directory fails.
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r--framework/TApplication.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php
index 12ac7195..681e8f3e 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -314,7 +314,8 @@ class TApplication extends TComponent
$subdir=basename($this->_configFile);
$this->_runtimePath.='/'.$subdir;
if(!is_dir($this->_runtimePath))
- mkdir($this->_runtimePath);
+ if(@mkdir($this->_runtimePath)===false)
+ throw new TConfigurationException('application_runtimepath_failed',$this->_runtimePath);
}
}
else