summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorEudyptula <eitan@mosenkis.net>2009-06-22 10:52:52 -0400
committerEudyptula <eitan@mosenkis.net>2009-06-22 10:52:52 -0400
commit91e3bccf35c01c05f2062266ca1433ae46313bb5 (patch)
tree26bbe304f52c7255e0c8f43d20bb57cffe966c64 /shared
parentAdded ACCEPT_KEYWORDS from Packages headers to make.conf (diff)
downloadingenue-91e3bccf35c01c05f2062266ca1433ae46313bb5.tar.gz
ingenue-91e3bccf35c01c05f2062266ca1433ae46313bb5.tar.bz2
ingenue-91e3bccf35c01c05f2062266ca1433ae46313bb5.zip
Little fixes to error handling and other minor things
Diffstat (limited to 'shared')
-rw-r--r--shared/classes/build.php4
-rw-r--r--shared/classes/task.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/shared/classes/build.php b/shared/classes/build.php
index 6034cf5..8907693 100644
--- a/shared/classes/build.php
+++ b/shared/classes/build.php
@@ -42,7 +42,7 @@ class sql_build extends sql_row_obj {
public function init() {
global $S;
$this->owner=$S['user']->id;
- $this->status='config/step0';
+ $this->status='config/step1';
$fails=0;
while (true) {
$id=randstring(6);
@@ -52,7 +52,7 @@ class sql_build extends sql_row_obj {
break;
}
if (++$fails == 10) {
- throw new Exception('Failed 10 times to find a unique build id... this shouldn\'t happen.');
+ throw_exception('Failed 10 times to find a unique build id... this shouldn\'t happen.');
}
}
$this->id=$id;
diff --git a/shared/classes/task.php b/shared/classes/task.php
index cdea343..19afff7 100644
--- a/shared/classes/task.php
+++ b/shared/classes/task.php
@@ -26,7 +26,7 @@ class sql_task extends sql_row_obj {
'unsigned' => true,
'not_null' => true
),
- 'end' => array (
+ 'finish' => array (
'type' => 'INT',
'length' => 10,
'unsigned' => true