Jeremy D commited on 2011-11-07 16:52:04
Showing 1 changed files, with 10 additions and 1 deletions.
... | ... |
@@ -35,7 +35,7 @@ exit(var_dump($this->tbg_db->errorInfo())); |
35 | 35 |
|
36 | 36 |
/* |
37 | 37 |
* @TODO Known Bugs |
38 |
-* Converting categories doesn't sort them properly for which project they existed. |
|
38 |
+* Converting categories doesn't sort them properly for which project` they existed. |
|
39 | 39 |
* Converting versions doesn't work when repeated due to the data existing in builds already and is skipped. Step 0 anyone? |
40 | 40 |
* Doesn't add the default wiki pages upon creating a project. |
41 | 41 |
* Issue conversion doesn't fix state. |
... | ... |
@@ -173,6 +173,15 @@ class tbg_converter |
173 | 173 |
|
174 | 174 |
// validate the settings. |
175 | 175 |
$errors = $this->setSettings(); |
176 |
+ |
|
177 |
+ if (!empty($errors)) |
|
178 |
+ { |
|
179 |
+ foreach ($errors as $error); |
|
180 |
+ print($error . "\n"); |
|
181 |
+ exit; |
|
182 |
+ } |
|
183 |
+ else |
|
184 |
+ print("Done\nStep 1) " . $this->steps[1][0] . '.'); |
|
176 | 185 |
} |
177 | 186 |
|
178 | 187 |
/** |
179 | 188 |