Skip to content

Commit

Permalink
[PowerRename] don't show an error message for invalid regex syntax (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
enricogior authored Dec 31, 2020
1 parent a8a87bc commit ff07374
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/powerrename/lib/PowerRenameManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,9 @@ DWORD WINAPI CPowerRenameManager::s_regexWorkerThread(_In_ void* pv)
}
catch (...)
{
MessageBox(NULL, L"RegexWorkerThread failed to execute.\nPlease report the bug to https://aka.ms/powerToysReportBug", L"PowerRename Error", MB_OK);
// TODO: an exception can happen while typing the expression and the syntax is not correct yet,
// we need to be more granular and raise an exception only when a real problem happened.
// MessageBox(NULL, L"RegexWorkerThread failed to execute.\nPlease report the bug to https://aka.ms/powerToysReportBug", L"PowerRename Error", MB_OK);
}

return 0;
Expand Down

0 comments on commit ff07374

Please sign in to comment.