Commit a5f1c7abe870b825ef8a2dc00aece70ad163cb88

Kano 2014-03-30T01:02:38

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)
  {