Merge "Handle invalid dashboard config file"

This commit is contained in:
David Pursehouse
2012-12-11 02:01:11 -08:00
committed by Gerrit Code Review

View File

@@ -110,6 +110,8 @@ class DashboardsCollection implements
throw new ResourceNotFoundException(id);
} catch (IncorrectObjectTypeException e) {
throw new ResourceNotFoundException(id);
} catch (ConfigInvalidException e) {
throw new ResourceNotFoundException(id);
} catch (ResourceNotFoundException e) {
ProjectState ps = ctl.getProjectState().getParentState();
if (ps != null && seen.add(ps.getProject().getNameKey())) {