Skip to content

Commit

Permalink
improving error handling for object details pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Jan 9, 2020
1 parent ca80679 commit 4f76427
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -54,7 +54,6 @@
import com.evolveum.midpoint.util.logging.TraceManager;
import com.evolveum.midpoint.web.component.ObjectSummaryPanel;
import com.evolveum.midpoint.web.component.objectdetails.AbstractObjectMainPanel;
import com.evolveum.midpoint.web.component.prism.ContainerStatus;
import com.evolveum.midpoint.web.component.progress.ProgressPanel;
import com.evolveum.midpoint.web.component.progress.ProgressReportingAwarePage;
import com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour;
Expand Down Expand Up @@ -390,11 +389,8 @@ protected PrismObjectWrapper<O> loadObjectWrapper(PrismObject<O> objectToEdit, b
} catch (Exception ex) {
result.recordFatalError(getString("PageAdminObjectDetails.message.loadObjectWrapper.fatalError"), ex);
LoggingUtils.logUnexpectedException(LOGGER, "Couldn't load object", ex);
try {
wrapper = factory.createObjectWrapper(object, itemStatus, context);
} catch (SchemaException e) {
throw new SystemException(e.getMessage(), e);
}
showResult(result, false);
throw new RestartResponseException(getRestartResponsePage());
}

showResult(result, false);
Expand Down

0 comments on commit 4f76427

Please sign in to comment.