From 91e3bccf35c01c05f2062266ca1433ae46313bb5 Mon Sep 17 00:00:00 2001 From: Eudyptula Date: Mon, 22 Jun 2009 10:52:52 -0400 Subject: Little fixes to error handling and other minor things --- shared/classes/build.php | 4 ++-- shared/classes/task.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'shared') 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 -- cgit v1.2.3-65-gdbad