Revision 4782
Added by daigle almost 16 years ago
src/edu/ucsb/nceas/metacat/MetaCatServlet.java | ||
---|---|---|
2830 | 2830 |
logMetacat.error("Could not determine data file size limit. Using 1000. " |
2831 | 2831 |
+ pnfe.getMessage()); |
2832 | 2832 |
} |
2833 |
logMetacat.info( |
|
2834 |
"The size limit of uploaded data files is: " + sizeLimit); |
|
2833 |
logMetacat.debug("The size limit of uploaded data files is: " + sizeLimit); |
|
2835 | 2834 |
|
2836 | 2835 |
try { |
2837 | 2836 |
MultipartParser mp = new MultipartParser(request, |
... | ... | |
2873 | 2872 |
} |
2874 | 2873 |
out.println("<?xml version=\"1.0\"?>"); |
2875 | 2874 |
out.println("<error>"); |
2876 |
out.println("Error: problem reading multipart data.");
|
|
2875 |
out.println("Error: problem reading multipart data: " + ioe.getMessage());
|
|
2877 | 2876 |
out.println("</error>"); |
2877 |
out.close(); |
|
2878 |
return; |
|
2878 | 2879 |
} |
2879 | 2880 |
|
2880 | 2881 |
// Get the session information |
... | ... | |
2915 | 2916 |
if (username != null && !username.equals("public")) { |
2916 | 2917 |
handleUploadAction(request, out, params, fileList, username, |
2917 | 2918 |
groupnames, response); |
2918 |
} else { |
|
2919 |
|
|
2919 |
} else { |
|
2920 | 2920 |
out.println("<?xml version=\"1.0\"?>"); |
2921 | 2921 |
out.println("<error>"); |
2922 | 2922 |
out.println("Permission denied for " + action); |
... | ... | |
2941 | 2941 |
*/ |
2942 | 2942 |
out.println("<?xml version=\"1.0\"?>"); |
2943 | 2943 |
out.println("<error>"); |
2944 |
out.println( |
|
2945 |
"Error: action not registered. Please report this error."); |
|
2944 |
out.println("Error: action not registered. Please report this error."); |
|
2946 | 2945 |
out.println("</error>"); |
2947 | 2946 |
} |
2948 | 2947 |
out.close(); |
Also available in: Unified diff
Added exception to error xml to clarify error to api.