Permission denied errors are now being ignored while reading the system catalog.

Other parts of the program will have to cope with the fact that not all data will
be available.

Close #4
This commit is contained in:
eelke 2018-04-21 10:50:04 +02:00
parent 65c3d9f2b4
commit 8cb1d6eab3

View file

@ -180,8 +180,12 @@ void load(Pgsql::Connection &conn, IPgContainter &pg_cont)
} }
else { else {
auto details = result.diagDetails(); auto details = result.diagDetails();
if (details.state == "42501") { // permission denied
throw std::runtime_error("Query failed\n" + details.errorMessage); // ignore this for now
}
else {
throw std::runtime_error("Query failed\n" + details.errorMessage);
}
} }
} }