From 1936f047e3872e4c832ed7bc2662c9dd9b8903c9 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Mon, 17 Jun 2019 21:53:55 +0200 Subject: [PATCH] [platform] more descriptive message in 'cannot sudo' exception (EA-145268) GitOrigin-RevId: bb1771619a017cb626458484d5046c9a9468a625 --- .../platform-api/src/com/intellij/execution/util/ExecUtil.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-api/src/com/intellij/execution/util/ExecUtil.kt b/platform/platform-api/src/com/intellij/execution/util/ExecUtil.kt index 73dee257d824..e58c0e943363 100644 --- a/platform/platform-api/src/com/intellij/execution/util/ExecUtil.kt +++ b/platform/platform-api/src/com/intellij/execution/util/ExecUtil.kt @@ -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") } }