resultSummary.setText("");
arbitrageResult.setText("");
try {
- runPCTB();
+ runUpload();
} catch(Exception e) {
error(e.toString());
e.printStackTrace();
*
* @exception Exception if an error we didn't expect occured
*/
- private void runPCTB() throws Exception {
+ private void runUpload() throws Exception {
progresslog("starting");
String yarrgts = "";
latch.await(2, java.util.concurrent.TimeUnit.SECONDS);
}
+ if (islandName == null) {
+ error("Could not find island name in YPP user interface.");
+ return;
+ }
+
progresslog("table check...");
String headings_expected[] = new String[]
progressNote(pm, "Yarrg: Uploading");
progresslog("yarrg upload...");
- if (islandName != null) {
- doneyarrg = runYarrg(yarrgts, oceanName, islandName, yarrgdata);
- } else {
- System.out.println("Couldn't upload to Yarrg - no island name found");
- }
+ doneyarrg = runYarrg(yarrgts, oceanName, islandName, yarrgdata);
progresslog("yarrg done.");
}