mpd: workaround clang uncaught exception bug
This commit is contained in:
parent
18b6c7ecfe
commit
a36f24947c
40
packages/mpd/uncaught_exception.patch
Normal file
40
packages/mpd/uncaught_exception.patch
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
diff --git a/src/db/update/UpdateIO.cxx b/src/db/update/UpdateIO.cxx
|
||||||
|
index 2623b0dc4..421fb5680 100644
|
||||||
|
--- a/src/db/update/UpdateIO.cxx
|
||||||
|
+++ b/src/db/update/UpdateIO.cxx
|
||||||
|
@@ -28,6 +28,7 @@
|
||||||
|
#include "Log.hxx"
|
||||||
|
|
||||||
|
#include <stdexcept>
|
||||||
|
+#include <iostream>
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
|
@@ -84,6 +85,7 @@ try {
|
||||||
|
return GetDirectoryChildInfo(storage, directory, name_utf8)
|
||||||
|
.IsRegular();
|
||||||
|
} catch (const std::runtime_error &) {
|
||||||
|
+ std::cout << "";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
diff --git a/src/input/Error.cxx b/src/input/Error.cxx
|
||||||
|
index 3db1f26f1..dfa43093b 100644
|
||||||
|
--- a/src/input/Error.cxx
|
||||||
|
+++ b/src/input/Error.cxx
|
||||||
|
@@ -30,12 +30,15 @@
|
||||||
|
#include <nfsc/libnfs-raw-nfs.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#include <iostream>
|
||||||
|
+
|
||||||
|
bool
|
||||||
|
IsFileNotFound(std::exception_ptr ep)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
std::rethrow_exception(ep);
|
||||||
|
} catch (const std::system_error &e) {
|
||||||
|
+ std::cout << "";
|
||||||
|
return IsFileNotFound(e);
|
||||||
|
#ifdef ENABLE_CURL
|
||||||
|
} catch (const HttpStatusError &e) {
|
Loading…
Reference in New Issue
Block a user