Commit e2eaaa1461d7b28fc863756fc9708035736eaa54

kanoi 2014-03-30T01:04:07

Merge pull request #571 from kanoi/work miner.php show api/rig errors at the top of a customsummarypage

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/miner.php b/miner.php
index 4b10e35..1b935e4 100644
--- a/miner.php
+++ b/miner.php
@@ -2608,6 +2608,14 @@ function processcustompage($pagename, $sections, $sum, $ext, $namemap)
 		otherrow('<td class=bad>Bad "$rigs" array</td>');
  }
 
+ // Show API errors at the top
+ if (count($errors) > 0)
+ {
+	foreach ($errors as $err)
+		otherrow("<td colspan=100>$err</td>");
+	$errors = array();
+ }
+
  $shownsomething = false;
  if (count($results) > 0)
  {