| 1554 | } |
| 1555 | |
| 1556 | void BURP_error(USHORT errcode, bool abort, const SafeArg& arg) |
| 1557 | { |
| 1558 | /************************************** |
| 1559 | * |
| 1560 | * B U R P _ e r r o r |
| 1561 | * |
| 1562 | ************************************** |
| 1563 | * |
| 1564 | * Functional description |
| 1565 | * |
| 1566 | **************************************/ |
| 1567 | BurpMaster master; |
| 1568 | BurpGlobals* tdgbl = master.get(); |
| 1569 | |
| 1570 | // StatusAccessor is used only as RAII holder here |
| 1571 | UtilSvc::StatusAccessor sa = tdgbl->uSvc->getStatusAccessor(); |
| 1572 | |
| 1573 | sa.setServiceStatus(burp_msg_fac, errcode, arg); |
| 1574 | |
| 1575 | if (!tdgbl->uSvc->isService()) |
| 1576 | { |
| 1577 | BURP_msg_partial(true, 256); // msg 256: gbak: ERROR: |
| 1578 | BURP_msg_put(true, errcode, arg); |
| 1579 | } |
| 1580 | |
| 1581 | if (abort) |
| 1582 | BURP_abort(); |
| 1583 | else |
| 1584 | tdgbl->uSvc->started(); |
| 1585 | } |
| 1586 | |
| 1587 | |
| 1588 | void BURP_error(USHORT errcode, bool abort, const char* str) |
no test coverage detected