Project

General

Profile

« Previous | Next » 

Revision 9494

Added by Jing Tao over 8 years ago

Put a detal code on the InvalidRequest exception in the getPackage method.

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
2372 2372
				// just the lone pid in this package
2373 2373
				//packagePids.add(pid);
2374 2374
			    //throw an invalid request exception
2375
			    throw new InvalidRequest("", "The given pid "+pid.getValue()+" is not a package id (resource map id). Please use a package id instead.");
2375
			    throw new InvalidRequest("2873", "The given pid "+pid.getValue()+" is not a package id (resource map id). Please use a package id instead.");
2376 2376
			}
2377 2377
			
2378 2378
			//Create a temp file, then delete it and make a directory with that name

Also available in: Unified diff