as this is going to be a common mistake (installing LLVM defaults to not putting
the tools onto the PATH).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190036
91177308-0d34-0410-b5e6-
96231b3b80d8
// Thus, we:\r
// 1. Start the process - clang-format.exe will start to read the input from the\r
// standard input.\r
- process.Start();\r
+ try\r
+ {\r
+ process.Start();\r
+ }\r
+ catch (Exception e)\r
+ {\r
+ throw new Exception(\r
+ "Cannot execute " + process.StartInfo.FileName + ".\n\"" + \r
+ e.Message + "\".\nPlease make sure it is on the PATH.");\r
+ }\r
// 2. We write everything to the standard output - this cannot block, as clang-format\r
// reads the full standard input before analyzing it without writing anything to the\r
// standard output.\r