Skip to content

Commit

Permalink
Fixing typo (#3518)
Browse files Browse the repository at this point in the history
When opening Xournal++ after an update changing where the configuration files are located, users are greeted with a message that contains an error.
This commit fixes it.
  • Loading branch information
Varpie committed Nov 10, 2021
1 parent 0d8d375 commit d88fb37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/control/XournalMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ auto migrateSettings() -> MigrateResult {
Util::ensureFolderExists(newConfigPath.parent_path());
try {
fs::copy(oldPath, newConfigPath, fs::copy_options::recursive);
constexpr auto msg = "Due to a recent update, Xournal++ has changed where it's configuration files are "
constexpr auto msg = "Due to a recent update, Xournal++ has changed where its configuration files are "
"stored.\nThey have been automatically copied from\n\t{1}\nto\n\t{2}";
return {MigrateStatus::Success, FS(_F(msg) % oldPath.u8string() % newConfigPath.u8string())};
} catch (fs::filesystem_error const& except) {
constexpr auto msg =
"Due to a recent update, Xournal++ has changed where it's configuration files are "
"Due to a recent update, Xournal++ has changed where its configuration files are "
"stored.\nHowever, when attempting to copy\n\t{1}\nto\n\t{2}\nmigration failed:\n{3}";
g_message("Migration failed: %s", except.what());
return {MigrateStatus::Failure,
Expand Down

0 comments on commit d88fb37

Please sign in to comment.