Project

General

Profile

« Previous | Next » 

Revision 5056

Added by daigle about 15 years ago

Make some error messages more understandable

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
1332 1332
        try {
1333 1333
            sess = new AuthSession();
1334 1334
        } catch (Exception e) {
1335
        	String errorMsg = "Problem in MetacatServlet.handleLoginAction() authenicating session: "
1335
        	String errorMsg = "MetacatServlet.handleLoginAction()- Problem in MetacatServlet.handleLoginAction() authenicating session: "
1336 1336
                + e.getMessage();
1337 1337
            logMetacat.error(errorMsg);
1338 1338
            out.println(errorMsg);
......
1353 1353
						.getAttribute("groupnames"), (String) session
1354 1354
						.getAttribute("password"));
1355 1355
			} catch (ServiceException se) {
1356
				String errorMsg = "Problem in MetacatServlet.handleLoginAction() registering session: "
1356
				String errorMsg = "MetacatServlet.handleLoginAction()- service problem registering session: "
1357 1357
						+ se.getMessage();
1358 1358
				logMetacat.error(errorMsg);
1359 1359
				out.println(errorMsg);
1360 1360
				return;
1361
			}
1361
			} 
1362
//			catch (PropertyNotFoundException pnfe) {
1363
//				String errorMsg = "MetacatServlet.handleLoginAction() - problem getting application context: "
1364
//					+ pnfe.getMessage();
1365
//				logMetacat.error(errorMsg);
1366
//				out.println(errorMsg);
1367
//				return;
1368
//			}
1369
			
1362 1370
        }
1363 1371
        
1364 1372
        // format and transform the output

Also available in: Unified diff