From 6a14049652005417540c4e910bf61a7c013758d1 Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Tue, 7 Jun 2011 23:52:23 +0000 Subject: [PATCH] Issue 401 - use default exception handling for ExportRows command instead of JSON response git-svn-id: http://google-refine.googlecode.com/svn/trunk@2093 7d457c2a-affb-35e4-300a-418c747d4874 --- .../com/google/refine/commands/project/ExportRowsCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/src/com/google/refine/commands/project/ExportRowsCommand.java b/main/src/com/google/refine/commands/project/ExportRowsCommand.java index 9a257738d..c2fb1c55b 100644 --- a/main/src/com/google/refine/commands/project/ExportRowsCommand.java +++ b/main/src/com/google/refine/commands/project/ExportRowsCommand.java @@ -97,10 +97,12 @@ public class ExportRowsCommand extends Command { // } else if (exporter instanceof UrlExporter) { // ((UrlExporter) exporter).export(project, options, engine); } else { + // TODO: Should this use ServletException instead of respondException? respondException(response, new RuntimeException("Unknown exporter type")); } } catch (Exception e) { - respondException(response, e); + // Use generic error handling rather than our JSON handling + throw new ServletException(e); } finally { ProjectManager.singleton.setBusy(false); }