oops ... removed error handler, which was left from phonegap message.