summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--application.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/application.rb b/application.rb
index e0a6abc..32601f2 100644
--- a/application.rb
+++ b/application.rb
@@ -62,6 +62,7 @@ get '/:id' do
raise e.message + e.backtrace
halt 404, "Dataset #{params[:id]} not found."
end
+ halt 404, "Dataset #{params[:id]} not found." if dataset.nil? # not sure how an empty cataset can be returned, but if this happens stale processes keep runing at 100% cpo
case accept
when /rdf/ # redland sends text/rdf instead of application/rdf+xml
response['Content-Type'] = 'application/rdf+xml'