2022-11-17 Fred Gleason <fredg@paravelsystems.com>

* Simplified error return descriptions for the podcast methods in
	the Web API.
	* Removed the 'RDFeed::Error' enumeration.
	* Removed the 'RDFeed::errorString()' method.
	* Fixed bugs in rdcatchd(8) in handling errors when posting to
	RSS feeds.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-11-17 15:55:26 -05:00
parent 7beec8dba1
commit d33fae60a7
8 changed files with 194 additions and 108 deletions

View File

@@ -276,8 +276,7 @@ void Xport::PostPodcast()
delete upload;
delete feed;
delete cast;
XmlExit(QString("Upload to \"")+desturl+"\" failed ["+err_msg+"]",500,
"podcasts.cpp",LINE_NUMBER);
XmlExit(err_msg,500,"podcasts.cpp",LINE_NUMBER);
}
delete upload;
@@ -335,8 +334,7 @@ void Xport::RemovePodcast()
delete del;
delete feed;
delete cast;
XmlExit(QString("Deletion of \"")+desturl+"\" failed ["+
RDDelete::errorText(del_err)+"]",500,"podcasts.cpp",LINE_NUMBER);
XmlExit(RDDelete::errorText(del_err),500,"podcasts.cpp",LINE_NUMBER);
}
delete del;
@@ -531,8 +529,7 @@ void Xport::RemoveRss()
rda->config()->logXloadDebugData()))!=RDDelete::ErrorOk) {
delete del;
delete feed;
XmlExit(QString("Deletion of \"")+desturl+"\" failed ["+
RDDelete::errorText(del_err)+"]",500,"podcasts.cpp",LINE_NUMBER);
XmlExit(RDDelete::errorText(del_err),500,"podcasts.cpp",LINE_NUMBER);
}
delete del;
@@ -715,8 +712,7 @@ void Xport::RemoveImage()
rda->config()->logXloadDebugData()))!=RDDelete::ErrorOk) {
delete del;
delete feed;
XmlExit(QString("Deletion of image \"")+desturl+"\" failed ["+
RDDelete::errorText(del_err)+"]",500,"podcasts.cpp",LINE_NUMBER);
XmlExit(RDDelete::errorText(del_err),500,"podcasts.cpp",LINE_NUMBER);
}
delete del;