forked from qt-creator/qt-creator
Sqlite: Print error message in ConstraintPreventsModification::what()
Change-Id: Iffec725e59800bcb0b47bdf3268837c4f69c7eaa Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -85,7 +85,11 @@ const char *InputOutputError::what() const noexcept
|
||||
|
||||
const char *ConstraintPreventsModification::what() const noexcept
|
||||
{
|
||||
return "Sqlite::ConstraintPreventsModification";
|
||||
static std::string text;
|
||||
text = "Sqlite::ConstraintPreventsModification: ";
|
||||
text += message();
|
||||
|
||||
return text.c_str();
|
||||
}
|
||||
|
||||
const char *NoValuesToFetch::what() const noexcept
|
||||
|
Reference in New Issue
Block a user