Sqlite: Print error message in ConstraintPreventsModification::what()

Change-Id: Iffec725e59800bcb0b47bdf3268837c4f69c7eaa
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Marco Bubke
2025-06-16 14:10:36 +02:00
parent c856e84603
commit d2d7f939a6

View File

@@ -85,7 +85,11 @@ const char *InputOutputError::what() const noexcept
const char *ConstraintPreventsModification::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 const char *NoValuesToFetch::what() const noexcept