TRQ-2025: fix prints queue name twice

- implement fix in get_err_msg
- unit tests: