Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/alice/alice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ int alice(Firebird::UtilSvc* uSvc)

if (any_error)
{
ALICE_print(24); // msg 24: Summary of validation errors\n
ALICE_print(24, SafeArg(), false); // msg 24: Summary of validation errors\n

for (int i = 0; i < MAX_VAL_ERRORS; ++i)
{
Expand Down Expand Up @@ -637,13 +637,19 @@ void ALICE_upper_case(const TEXT* in, TEXT* out, const size_t buf_size)
// Display a formatted error message
//

void ALICE_print(USHORT number, const SafeArg& arg)
void ALICE_print(USHORT number, const SafeArg& arg, const bool isError)
{
AliceGlobals* tdgbl = AliceGlobals::getSpecific();
if (tdgbl->uSvc->isService())
{
if (!isError)
tdgbl->uSvc->started();

tdgbl->uSvc->getStatusAccessor().setServiceStatus(ALICE_MSG_FAC, number, arg);
tdgbl->uSvc->started();

if (isError)
tdgbl->uSvc->started();

return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/alice/alice_proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int alice(Firebird::UtilSvc*);
class AliceGlobals;

void ALICE_upper_case(const TEXT*, TEXT*, const size_t);
void ALICE_print(USHORT, const MsgFormat::SafeArg& arg = MsgFormat::SafeArg());
void ALICE_print(USHORT, const MsgFormat::SafeArg& arg = MsgFormat::SafeArg(), const bool isError = true);
void ALICE_error(USHORT, const MsgFormat::SafeArg& arg = MsgFormat::SafeArg());
void ALICE_print_status(bool error, const ISC_STATUS*);
void ALICE_exit(int, AliceGlobals*);
Expand Down
Loading