mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
verify() fix
This commit is contained in:
parent
05fb57baff
commit
56b9b38c9c
10 changed files with 55 additions and 68 deletions
|
@ -132,7 +132,7 @@ namespace fmt
|
|||
throw std::runtime_error{msg};
|
||||
}
|
||||
|
||||
void raw_verify_error(const char* msg, uint position)
|
||||
void raw_verify_error(const char* msg, const fmt_type_info* sup, u64 arg)
|
||||
{
|
||||
std::string out{"Verification failed"};
|
||||
|
||||
|
@ -149,15 +149,18 @@ namespace fmt
|
|||
}
|
||||
#endif
|
||||
|
||||
if (position)
|
||||
if (sup)
|
||||
{
|
||||
out += " (+";
|
||||
out += std::to_string(position);
|
||||
out += " (";
|
||||
sup->fmt_string(out, arg); // Print value
|
||||
out += ")";
|
||||
}
|
||||
|
||||
out += ": ";
|
||||
out += msg;
|
||||
if (msg)
|
||||
{
|
||||
out += ": ";
|
||||
out += msg;
|
||||
}
|
||||
|
||||
throw std::runtime_error{out};
|
||||
}
|
||||
|
@ -166,13 +169,16 @@ namespace fmt
|
|||
{
|
||||
std::string out{"Narrow error"};
|
||||
|
||||
out += " (";
|
||||
sup->fmt_string(out, arg); // Print value
|
||||
out += "): ";
|
||||
if (sup)
|
||||
{
|
||||
out += " (";
|
||||
sup->fmt_string(out, arg); // Print value
|
||||
out += ")";
|
||||
}
|
||||
|
||||
if (msg)
|
||||
{
|
||||
out += " ";
|
||||
out += ": ";
|
||||
out += msg;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue