Changeset d385a0


Ignore:
Timestamp:
Jan 26, 2015, 12:15:21 PM (7 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
58f7ee
Parents:
4b9bc7
Message:

made identity-extras more robust against module errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/vI_identityDataExtras.js

    r4b9bc7 rd385a0  
    5757  }
    5858  for each(let [, identityDataExtrasObject] in Iterator(idExtrasObjects)) {
    59     this.extras.push(new identityDataExtrasObject(this._currentWindow));
     59    try {
     60      this.extras.push(new identityDataExtrasObject(this._currentWindow));
     61    } catch (e) {
     62      Log.error("identityDataExtras '" + identityDataExtrasObject + "' returned an error:", e)
     63      dumpCallStack(e);
     64    }
    6065  }
    6166  if (rdfDatasource)
     
    7378        returnVal = k(this.extras[i], i, returnVal)
    7479      } catch (e) {
    75         Log.warn("identityDataExtras '" + this.extras[i].field + "' returned an error:", e);
     80        Log.error("identityDataExtras '" + this.extras[i].field + "' returned an error:", e);
    7681        dumpCallStack(e);
    7782      }
Note: See TracChangeset for help on using the changeset viewer.