aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/web/client/controller/DeviceController.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/org/traccar/web/client/controller/DeviceController.java b/src/org/traccar/web/client/controller/DeviceController.java
index 94c81ed3..95eb60d7 100644
--- a/src/org/traccar/web/client/controller/DeviceController.java
+++ b/src/org/traccar/web/client/controller/DeviceController.java
@@ -84,6 +84,10 @@ public class DeviceController implements ContentController, DeviceView.DeviceHan
public void onSuccess(Device result) {
deviceStore.add(result);
}
+ @Override
+ public void onFailure(Throwable caught) {
+ new AlertMessageBox("Error", "Device with this Unique ID already exists").show();
+ }
});
}
}).show();
@@ -99,6 +103,10 @@ public class DeviceController implements ContentController, DeviceView.DeviceHan
public void onSuccess(Device result) {
deviceStore.update(result);
}
+ @Override
+ public void onFailure(Throwable caught) {
+ new AlertMessageBox("Error", "Device with this Unique ID already exists").show();
+ }
});
}
}).show();