[platform] more descriptive message in 'cannot sudo' exception (EA-145268)

GitOrigin-RevId: bb1771619a017cb626458484d5046c9a9468a625
This commit is contained in:
Roman Shevchenko
2019-07-02 06:52:16 +03:00
committed by intellij-monorepo-bot
parent cb8768af6a
commit 1936f047e3
@@ -169,7 +169,7 @@ object ExecUtil {
GeneralCommandLine(getTerminalCommand("Install", script.absolutePath))
}
else -> {
throw UnsupportedOperationException("Unsupported OS/desktop: ${SystemInfo.OS_NAME}/${SystemInfo.SUN_DESKTOP}")
throw UnsupportedOperationException("Cannot `sudo` on this system - no suitable utils found")
}
}