@ardimedia/angular-portal-azure 0.2.301 → 0.2.303

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 +7 -8
  2. package/package.json +1 -1
package/apn.js CHANGED
@@ -1239,7 +1239,7 @@ var angularportalazure;
1239
1239
  if (!this.formblade.$valid) {
1240
1240
  this.statusBar = 'Speichern nicht möglich! [Console] enthält weitere Informationen.';
1241
1241
  this.statusBarClass = 'apa-statusbar-error';
1242
- console.log(this.formblade);
1242
+ //console.log(this.formblade);
1243
1243
  return;
1244
1244
  }
1245
1245
  // angular: if form valid
@@ -1284,7 +1284,7 @@ var angularportalazure;
1284
1284
  if (!this.formblade.$valid) {
1285
1285
  this.statusBar = 'Speichern nicht möglich! [Console] enthält weitere Informationen.';
1286
1286
  this.statusBarClass = 'apa-statusbar-error';
1287
- console.log(this.formblade);
1287
+ //console.log(this.formblade);
1288
1288
  return;
1289
1289
  }
1290
1290
  // angular: if form valid
@@ -1582,15 +1582,12 @@ var angularportalazure;
1582
1582
  }
1583
1583
  }
1584
1584
  if (message === 'FEHLER ') {
1585
- console.debug(exception);
1586
1585
  message = message + ': JavaScript-Fehler oder Probleme mit der Internetverbindung. Weitere Informationen im Log. ' + exception;
1587
1586
  }
1588
1587
  return message;
1589
1588
  };
1590
1589
  // TODO:2018-10-10/hp: [angular.IHttpPromiseCallbackArg<angularportalazure.Exception>] should be Response
1591
1590
  Exception.prepareException = function (response) {
1592
- console.debug('angularportalazure.Exception.prepareException');
1593
- console.debug(response);
1594
1591
  var exception = angularportalazure.Exception.createException();
1595
1592
  // #region Process (Angular 1) response.data.Data
1596
1593
  if (response.data !== undefined && response.data.Data !== undefined) {
@@ -1602,11 +1599,15 @@ var angularportalazure;
1602
1599
  exception = angularportalazure.Exception.processResponseData(exception, response.json().Data);
1603
1600
  }
1604
1601
  // #endregion
1602
+ // #region Process (Angular 2) response.InnerException.InnerException.Message
1603
+ else if (response.InnerException !== undefined && response.InnerException.InnerException !== undefined) {
1604
+ exception.Message = response.InnerException.InnerException.Message;
1605
+ }
1606
+ // #endregion
1605
1607
  //exception.convertResponse(response);
1606
1608
  exception.Url = response.url;
1607
1609
  exception.Status = response.status;
1608
1610
  exception.StatusText = response.statusText;
1609
- console.debug(exception);
1610
1611
  return exception;
1611
1612
  };
1612
1613
  Exception.createException = function () {
@@ -1632,10 +1633,8 @@ var angularportalazure;
1632
1633
  // return exception;
1633
1634
  //}
1634
1635
  Exception.processResponseData = function (exception, data) {
1635
- console.debug('angularportalazure.Exception.processResponseData');
1636
1636
  var i = 1;
1637
1637
  while (data[i + ''] !== undefined) {
1638
- console.debug('Add to exception.Messages : ' + data[i + '']);
1639
1638
  exception.Messages.push(data[i + '']);
1640
1639
  i++;
1641
1640
  }
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.301",
5
+ "version": "0.2.303",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {