@@ -344,17 +344,17 @@ bool FileSystem::setFolderPermissions(const QString &path,
344
344
}
345
345
catch (const std::filesystem::filesystem_error &e)
346
346
{
347
- qCWarning (lcFileSystem ()) << " exception when modifying folder permissions" << e.what () << e.path1 ().c_str () << e.path2 ().c_str ();
347
+ qCWarning (lcFileSystem ()) << " exception when modifying folder permissions" << e.what () << " - path1: " << e.path1 ().c_str () << " - path2: " << e.path2 ().c_str ();
348
348
return false ;
349
349
}
350
350
catch (const std::system_error &e)
351
351
{
352
- qCWarning (lcFileSystem ()) << " exception when modifying folder permissions" << e.what ();
352
+ qCWarning (lcFileSystem ()) << " exception when modifying folder permissions" << e.what () << " - path: " << stdStrPath ;
353
353
return false ;
354
354
}
355
355
catch (...)
356
356
{
357
- qCWarning (lcFileSystem ()) << " exception when modifying folder permissions" ;
357
+ qCWarning (lcFileSystem ()) << " exception when modifying folder permissions - path: " << stdStrPath ;
358
358
return false ;
359
359
}
360
360
@@ -494,12 +494,12 @@ bool FileSystem::setFolderPermissions(const QString &path,
494
494
}
495
495
catch (const std::system_error &e)
496
496
{
497
- qCWarning (lcFileSystem ()) << " exception when modifying folder permissions" << e.what ();
497
+ qCWarning (lcFileSystem ()) << " exception when modifying folder permissions" << e.what () << " - path: " << stdStrPath ;
498
498
return false ;
499
499
}
500
500
catch (...)
501
501
{
502
- qCWarning (lcFileSystem ()) << " exception when modifying folder permissions" ;
502
+ qCWarning (lcFileSystem ()) << " exception when modifying folder permissions - path: " << stdStrPath ;
503
503
return false ;
504
504
}
505
505
@@ -516,17 +516,17 @@ bool FileSystem::isFolderReadOnly(const std::filesystem::path &path) noexcept
516
516
}
517
517
catch (const std::filesystem::filesystem_error &e)
518
518
{
519
- qCWarning (lcFileSystem ()) << " exception when checking folder permissions" << e.what () << e.path1 ().c_str () << e.path2 ().c_str ();
519
+ qCWarning (lcFileSystem ()) << " exception when checking folder permissions" << e.what () << " - path1: " << e.path1 ().c_str () << " - path2: " << e.path2 ().c_str ();
520
520
return false ;
521
521
}
522
522
catch (const std::system_error &e)
523
523
{
524
- qCWarning (lcFileSystem ()) << " exception when checking folder permissions" << e.what ();
524
+ qCWarning (lcFileSystem ()) << " exception when checking folder permissions" << e.what () << " - path: " << path ;
525
525
return false ;
526
526
}
527
527
catch (...)
528
528
{
529
- qCWarning (lcFileSystem ()) << " exception when checking folder permissions" ;
529
+ qCWarning (lcFileSystem ()) << " exception when checking folder permissions - path: " << path ;
530
530
return false ;
531
531
}
532
532
}
@@ -545,15 +545,15 @@ FileSystem::FilePermissionsRestore::FilePermissionsRestore(const QString &path,
545
545
}
546
546
catch (const std::filesystem::filesystem_error &e)
547
547
{
548
- qCWarning (lcFileSystem ()) << " exception when modifying folder permissions" << e.what () << e.path1 ().c_str () << e.path2 ().c_str ();
548
+ qCWarning (lcFileSystem ()) << " exception when modifying folder permissions" << e.what () << " - path1: " << e.path1 ().c_str () << " - path2: " << e.path2 ().c_str ();
549
549
}
550
550
catch (const std::system_error &e)
551
551
{
552
- qCWarning (lcFileSystem ()) << " exception when modifying folder permissions" << e.what ();
552
+ qCWarning (lcFileSystem ()) << " exception when modifying folder permissions" << e.what () << " - path: " << path ;
553
553
}
554
554
catch (...)
555
555
{
556
- qCWarning (lcFileSystem ()) << " exception when modifying folder permissions" ;
556
+ qCWarning (lcFileSystem ()) << " exception when modifying folder permissions - path: " << path ;
557
557
}
558
558
}
559
559
0 commit comments