8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 10:00:38 +01:00

Fixed error handlig in test

This commit is contained in:
alexpeshkoff 2015-02-27 15:59:11 +00:00
parent 88f3e7e266
commit adee7ab4b6

View File

@ -148,14 +148,12 @@ int main()
att->detach(&status);
att = NULL;
}
catch (const char* text)
catch (const FbException& error)
{
rc = 1;
// handle error
fflush(stdout);
fprintf(stderr, " %s:\n", text);
if (st)
isc_print_status(st->getErrors());
rc = 1;
isc_print_status(error.getStatus()->getErrors());
}
if (meta)