Revision 9257
Added by Jing Tao over 9 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
2244 | 2244 |
} else { |
2245 | 2245 |
this.cn.synchronize(null, pid); |
2246 | 2246 |
} |
2247 |
|
|
2247 |
} catch (BaseException e) { |
|
2248 |
e.printStackTrace(); |
|
2249 |
logMetacat.error("It is a DataONEBaseException and its detail code is "+e.getDetail_code() +" and its code is "+e.getCode()); |
|
2250 |
logMetacat.error("Can't update the systemmetadata of pid "+pid.getValue()+" in CNs since "+e.getMessage()); |
|
2248 | 2251 |
} catch (Exception e) { |
2249 | 2252 |
e.printStackTrace(); |
2250 | 2253 |
logMetacat.error("Can't update the systemmetadata of pid "+pid.getValue()+" in CNs since "+e.getMessage()); |
Also available in: Unified diff
Add code to catch the BaseException in the updateSystemMetadata method.