Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r1016 committed - In flash client, print dynamic error string.

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r1016 committed - In flash client, print dynamic error string.


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r1016 committed - In flash client, print dynamic error string.
  • Date: Thu, 13 Mar 2014 16:11:45 +0000

Revision: 1016
Author:

Date: Thu Mar 13 16:11:33 2014 UTC
Log: In flash client, print dynamic error string.
http://code.google.com/p/ndt/source/detail?r=1016

Modified:
/branches/Issue134/flash-client/src/NDTUtils.as

=======================================
--- /branches/Issue134/flash-client/src/NDTUtils.as Wed Mar 12 17:17:08 2014 UTC
+++ /branches/Issue134/flash-client/src/NDTUtils.as Thu Mar 13 16:11:33 2014 UTC
@@ -47,6 +47,14 @@
} catch (e:Error) {
// TODO(tiziana): Find out why ExternalInterface.available does not work
// in some cases and this exception is raised.
+
+ // TestResults.appendDebugMsg() calls callExternalFunction
+ // to invoke JS callbacks. Without this check we can
+ // recurse infinitely.
+ if (functionName != "appendDebugOutput") {
+ TestResults.appendDebugMsg("Failed to call " + functionName + ": "
+ + e.toString());
+ }
}
}
/**
@@ -81,6 +89,8 @@
} catch(e:Error) {
// TODO(tiziana): Find out why ExternalInterface.available does not work
// in some cases and this exception is raised.
+ TestResults.appendDebugMsg("Failed to get window.navigator.userAgent: "
+ + e.toString());
}

try {
@@ -92,8 +102,8 @@
+ Main.server_hostname);
}
} catch(e:Error) {
- TestResults.appendDebugMsg("Bad Flash permissions: No "
- + "access to javascript.");
+ TestResults.appendDebugMsg("Failed to call getNDTServer(): "
+ + e.toString());
}

try {
@@ -107,8 +117,8 @@
+ Main.client_application);
}
} catch(e:Error) {
- TestResults.appendDebugMsg("Bad Flash permissions: No "
- + "access to javascript.");
+ TestResults.appendDebugMsg("Failed to call getClientApplication(): "
+ + e.toString());
}

try {
@@ -122,8 +132,8 @@
+ Main.ndt_description);
}
} catch(e:Error) {
- TestResults.appendDebugMsg("Bad Flash permissions: No "
- + "access to javascript.");
+ TestResults.appendDebugMsg("Failed to call getNDTDescription(): "
+ + e.toString());
}
}



  • [ndt-dev] [ndt] r1016 committed - In flash client, print dynamic error string., ndt, 03/13/2014

Archive powered by MHonArc 2.6.16.

Top of Page