2009/dap/camera Overview-API.html,1.16,1.17

Update of /sources/public/2009/dap/camera
In directory hutz:/tmp/cvs-serv10064

Modified Files:
	Overview-API.html 
Log Message:
Fixed example.



Index: Overview-API.html
===================================================================
RCS file: /sources/public/2009/dap/camera/Overview-API.html,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- Overview-API.html	2 Sep 2010 08:22:07 -0000	1.16
+++ Overview-API.html	2 Sep 2010 14:31:44 -0000	1.17
@@ -69,7 +69,11 @@
 }
  
 function error(err) {
-  alert(err.message + " (" + err.code + ")"); 
+
+  if (err.code === err.CAPTURE_INTERNAL_ERR) {
+    alert("The capture failed due to an internal error");
+  }
+
 }
  
 navigator.device.captureImage(success, error, { maxNumberOfMediaFiles: 1 });

Received on Thursday, 2 September 2010 14:31:48 UTC