-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve debug output for some file system operations #11783
Conversation
src/library/parsercsv.cpp
Outdated
@@ -129,7 +133,7 @@ bool ParserCsv::writeCSVFile(const QString &file_str, BaseSqlTableModel* pPlayli | |||
if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { | |||
QMessageBox::warning(nullptr, | |||
tr("Playlist Export Failed"), | |||
tr("Could not create file") + " " + file_str); | |||
tr("Could not create file") + " " + file_str + "\n" + file.errorString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is possibly not localized and may look weird to inexperienced users. I think we should use the property-based API here and use the detailed text for this.
src/recording/recordingmanager.cpp
Outdated
@@ -189,11 +189,14 @@ void RecordingManager::setRecordingDir() { | |||
ConfigKey(RECORDING_PREF_KEY, "Directory"))); | |||
// Note: the default ConfigKey for recordDir is set in DlgPrefRecord::DlgPrefRecord. | |||
|
|||
if (!recordDir.exists()) { | |||
if (recordDir.mkpath(recordDir.absolutePath())) { | |||
if (recordDir.exists()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where did the !
go?
src/recording/recordingmanager.cpp
Outdated
if (!recordDir.exists()) { | ||
if (recordDir.mkpath(recordDir.absolutePath())) { | ||
if (recordDir.exists()) { | ||
if (!recordDir.mkpath(recordDir.absolutePath())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the exclamation mark is wrong here.
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you.
This aims to help finding the root cause of issue #11778