logo       

roller/src/org/roller/presentation RollerRequest.java,1.65,1.66: msg#00079

java.roller.cvs

Subject: roller/src/org/roller/presentation RollerRequest.java,1.65,1.66

Update of /cvsroot/roller/roller/src/org/roller/presentation
In directory sc8-pr-cvs1:/tmp/cvs-serv378/src/org/roller/presentation

Modified Files:
RollerRequest.java
Log Message:
error checking/logging improvements

Index: RollerRequest.java
===================================================================
RCS file:
/cvsroot/roller/roller/src/org/roller/presentation/RollerRequest.java,v
retrieving revision 1.65
retrieving revision 1.66
diff -C2 -d -r1.65 -r1.66
*** RollerRequest.java 17 Sep 2003 01:41:38 -0000 1.65
--- RollerRequest.java 17 Sep 2003 02:18:35 -0000 1.66
***************
*** 250,264 ****
mWeblogEntry = weblogMgr.getWeblogEntryByAnchor(
mUser.getUserName(), pathInfo[3]);
! }
!
! // if we somehow don't have a date, make it today
! //if (mDate == null) mDate = new Date();
!
! // no Page found? Make it the default page (that is
! // what a default is for, after all).
! //if (mPage == null)
! //{
! //mPage = userMgr.retrievePage(
website.getDefaultPageId() );
! //}
}
}
--- 250,254 ----
mWeblogEntry = weblogMgr.getWeblogEntryByAnchor(
mUser.getUserName(), pathInfo[3]);
! }
}
}
***************
*** 270,278 ****
if ( mUser==null || mDate==null || mPage==null )
{
! String msg = "";
! if (mUser == null) msg += "No User Found. ";
! if (mDate == null) msg += "No Date Found. ";
! if (mPage == null) msg += "No Page Found. ";
! throw new RollerException("Invalid PathInfo: " + msg);
}
}
--- 260,275 ----
if ( mUser==null || mDate==null || mPage==null )
{
! StringBuffer sb = new StringBuffer();
! sb.append("Invalid PathInfo: ");
! if (mUser == null) sb.append("No User Found. ");
! if (mDate == null) sb.append("No Date Found. ");
! if (mPage == null) sb.append("No Page Found. ");
! sb.append("pathInfo: ");
! sb.append(pathInfo);
! String msg = sb.toString();
!
! mLogger.info(msg);
!
! throw new RollerException(msg);
}
}




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise