mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
21 lines
382 B
C++
21 lines
382 B
C++
#include <IO/WriteHelpers.h>
|
|
#include <Common/NamePrompter.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
String getHintsErrorMessageSuffix(const std::vector<String> & hints)
|
|
{
|
|
if (hints.empty())
|
|
return {};
|
|
|
|
return ". Maybe you meant: " + toString(hints);
|
|
}
|
|
|
|
void appendHintsMessage(String & message, const std::vector<String> & hints)
|
|
{
|
|
message += getHintsErrorMessageSuffix(hints);
|
|
}
|
|
|
|
}
|