Skip to content

Commit

Permalink
use stuff from utki
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Jul 5, 2024
1 parent 621c9cc commit 8f410a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tst/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ SOFTWARE.
#include "application.hpp"

#include <utki/config.hpp>
#include <utki/exception.hpp>
#include <utki/string.hpp>
#include <utki/time.hpp>

Expand All @@ -45,6 +46,7 @@ SOFTWARE.
#endif

using namespace std::string_literals;
using namespace std::string_view_literals;

using namespace tst;

Expand Down Expand Up @@ -357,13 +359,13 @@ void run_test(const full_id& id, const std::function<void()>& proc, reporter& re
} catch (std::exception& e) {
uint32_t dt = utki::get_ticks_ms() - start_ticks;
std::stringstream ss;
ss << " uncaught exception:\n" << to_string(e, 4);
ss << " uncaught exception:\n"sv << utki::to_string(e, " "sv);
console_error_message = ss.str();
rep.report_error(id, dt, std::string(console_error_message));
} catch (...) {
uint32_t dt = utki::get_ticks_ms() - start_ticks;
std::stringstream ss;
ss << " uncaught exception:\n" << current_exception_to_string(4);
ss << " uncaught exception:\n"sv << utki::current_exception_to_string(" "sv);
console_error_message = ss.str();
rep.report_error(id, dt, std::string(console_error_message));
}
Expand Down

0 comments on commit 8f410a3

Please sign in to comment.