| 351 | |
| 352 | |
| 353 | void ERR_warning(const Arg::StatusVector& v) |
| 354 | { |
| 355 | /************************************** |
| 356 | * |
| 357 | * E R R _ w a r n i n g |
| 358 | * |
| 359 | ************************************** |
| 360 | * |
| 361 | * Functional description |
| 362 | * Write an error out to the status vector but |
| 363 | * don't throw an exception. This allows |
| 364 | * sending a warning message back to the user |
| 365 | * without stopping execution of a request. Note |
| 366 | * that subsequent errors can supersede this one. |
| 367 | * |
| 368 | **************************************/ |
| 369 | thread_db* tdbb = JRD_get_thread_data(); |
| 370 | FbStatusVector* s = tdbb->tdbb_status_vector; |
| 371 | |
| 372 | v.copyTo(s); |
| 373 | if (auto request = tdbb->getRequest()) |
| 374 | request->req_flags |= req_warning; |
| 375 | } |
| 376 | |
| 377 | |
| 378 | void ERR_append_status(FbStatusVector* status_vector, const Arg::StatusVector& v) |
no test coverage detected