mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-30 03:55:40 +00:00
Some minor changes to a couple of scraper error messages
This commit is contained in:
parent
075ad393d0
commit
9ced3a88a8
|
@ -353,7 +353,7 @@ MDResolveHandle::MDResolveHandle(const ScraperSearchResult& result,
|
||||||
std::ofstream stream(filePath, std::ios_base::out | std::ios_base::binary);
|
std::ofstream stream(filePath, std::ios_base::out | std::ios_base::binary);
|
||||||
#endif
|
#endif
|
||||||
if (!stream || stream.bad()) {
|
if (!stream || stream.bad()) {
|
||||||
setError("Failed to open path for writing media file.\nPermission error?", false);
|
setError("Failed to open path for writing media file\nPermission error?", false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -361,14 +361,14 @@ MDResolveHandle::MDResolveHandle(const ScraperSearchResult& result,
|
||||||
stream.write(content.data(), content.length());
|
stream.write(content.data(), content.length());
|
||||||
stream.close();
|
stream.close();
|
||||||
if (stream.bad()) {
|
if (stream.bad()) {
|
||||||
setError("Failed to save media file.\nDisk full?", false);
|
setError("Failed to save media file\nDisk full?", false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resize it.
|
// Resize it.
|
||||||
if (it->resizeFile) {
|
if (it->resizeFile) {
|
||||||
if (!resizeImage(filePath, it->subDirectory)) {
|
if (!resizeImage(filePath, it->subDirectory)) {
|
||||||
setError("Error saving resized image.\nOut of memory? Disk full?", false);
|
setError("Error saving resized image\nOut of memory? Disk full?", false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -580,7 +580,7 @@ void MediaDownloadHandle::update()
|
||||||
std::ofstream stream(mSavePath, std::ios_base::out | std::ios_base::binary);
|
std::ofstream stream(mSavePath, std::ios_base::out | std::ios_base::binary);
|
||||||
#endif
|
#endif
|
||||||
if (!stream || stream.bad()) {
|
if (!stream || stream.bad()) {
|
||||||
setError("Failed to open path for writing media file.\nPermission error?", false);
|
setError("Failed to open path for writing media file\nPermission error?", false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -588,7 +588,7 @@ void MediaDownloadHandle::update()
|
||||||
stream.write(content.data(), content.length());
|
stream.write(content.data(), content.length());
|
||||||
stream.close();
|
stream.close();
|
||||||
if (stream.bad()) {
|
if (stream.bad()) {
|
||||||
setError("Failed to save media file.\nDisk full?", false);
|
setError("Failed to save media file\nDisk full?", false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -612,7 +612,7 @@ void MediaDownloadHandle::update()
|
||||||
// Resize it.
|
// Resize it.
|
||||||
if (mResizeFile) {
|
if (mResizeFile) {
|
||||||
if (!resizeImage(mSavePath, mMediaType)) {
|
if (!resizeImage(mSavePath, mMediaType)) {
|
||||||
setError("Error saving resized image.\nOut of memory? Disk full?", false);
|
setError("Error saving resized image\nOut of memory? Disk full?", false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue