[BluetoothChat]update BluetoothChat(tizen_2.1)
[samples/web/BluetoothChat.git] / js / app.model.js
index 2882a7a..0cda8d1 100644 (file)
@@ -24,7 +24,8 @@ function Model() {
                                console.log('getDefaultAdapter OK: ' + (new Date().getTime() - time) + ' milliseconds.');
                                callback();
                        } catch (error) {
-                               console.error('Problem with bluetooth device. Application can\'t work properly: ' + error.message);
+                               alert('Problem with bluetooth device. Application can\'t work properly: ' + error.message);
+                               tizen.application.getCurrentApplication().exit();
                        }
                },