Fix a couple of issues while handling error stream in Shell (added in
- fix typo in System.getProperty("line.seperator"), currently it adds "null" instead of "\n".
- completed is not set to true when a process exits with an error.
- In normal error case, it reads errMsg (to create IOException) before waiting for errThread to complete, which results in in consistent error message. I will attach a patch.