fix error handling... again
fix error handling... again

kerrishotts/Mastering-PhoneGap-Code-Package,kerrishotts/Mastering-PhoneGap-Code-Package,kerrishotts/Mastering-PhoneGap-Code-Package,kerrishotts/Mastering-PhoneGap-Code-Package