Skip to content
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

Merged
merged 4 commits into from
Aug 6, 2023

Conversation

daschuer
Copy link
Member

@daschuer daschuer commented Aug 2, 2023

This aims to help finding the root cause of issue #11778

@@ -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());
Copy link
Member

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.

@@ -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()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where did the ! go?

if (!recordDir.exists()) {
if (recordDir.mkpath(recordDir.absolutePath())) {
if (recordDir.exists()) {
if (!recordDir.mkpath(recordDir.absolutePath())) {
Copy link
Member

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.

@daschuer
Copy link
Member Author

daschuer commented Aug 6, 2023

Done.

Copy link
Member

@Holzhaus Holzhaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you.

@Holzhaus Holzhaus merged commit 1ea4c09 into mixxxdj:2.3 Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants