Index: openacs-4/packages/news-aggregator/www/opml.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/news-aggregator/www/opml.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/news-aggregator/www/opml.tcl 20 Jan 2018 23:00:54 -0000 1.2 +++ openacs-4/packages/news-aggregator/www/opml.tcl 18 Jul 2018 17:08:51 -0000 1.3 @@ -7,10 +7,13 @@ {aggregator_id:naturalnum,notnull} } -if { [catch {set opml [news_aggregator::aggregator::as_opml \ - -aggregator_id $aggregator_id]} errmsg] } { - doc_return 200 text/html "" -} else { - doc_return 200 application/xml $opml +if {[catch { + set opml [news_aggregator::aggregator::as_opml \ + -aggregator_id $aggregator_id] +} errmsg]} { + ad_return_error "OPML generation error" "OPML generation error: $errmsg" + ad_script_abort } + +ns_return 200 application/xml $opml ad_script_abort