@ardimedia/angular-portal-azure 0.2.304 → 0.2.305

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/apn.js +4 -1
  2. package/package.json +1 -1
package/apn.js CHANGED
@@ -1553,8 +1553,11 @@ var angularportalazure;
1553
1553
  // #region Static Methods
1554
1554
  Exception.getOneLineMessage = function (exception) {
1555
1555
  var message = '';
1556
+ if (exception.Message.toLowerCase().indexOf('cannot insert duplicate key in object') >= 0) {
1557
+ return 'Datensatz mit gleichem Key (Schlüssel) bereits vorhanden!';
1558
+ }
1556
1559
  // Add Messages, if available
1557
- if (exception.Messages !== undefined) {
1560
+ if (exception.Messages !== undefined && exception.Messages.length > 0) {
1558
1561
  exception.Messages.forEach(function (item, index) {
1559
1562
  if (index > 0) {
1560
1563
  message = message + ' - ';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ardimedia/angular-portal-azure",
3
3
  "description": "Angular Portal Azure - GUI Framework.",
4
4
  "author": "Ardimedia Anstalt <info@ardimedia.com> (http://www.ardimedia.com)",
5
- "version": "0.2.304",
5
+ "version": "0.2.305",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {