diff options
Diffstat (limited to 'sources/shiboken6/ApiExtractor/messages.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/messages.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/messages.cpp b/sources/shiboken6/ApiExtractor/messages.cpp index 2e72b95bc..d0fec85b6 100644 --- a/sources/shiboken6/ApiExtractor/messages.cpp +++ b/sources/shiboken6/ApiExtractor/messages.cpp @@ -540,6 +540,15 @@ QString msgCannotOpenForWriting(const QFile &f) .arg(QDir::toNativeSeparators(f.fileName()), f.errorString()); } +QString msgWriteFailed(const QFile &f, qsizetype size) +{ + QString result; + QTextStream(&result) << "Failed to write " << size << "bytes to '" + << QDir::toNativeSeparators(f.fileName()) << "': " + << f.errorString(); + return result; +} + // generator.cpp QString msgCannotUseEnumAsInt(const QString &name) |
