diff --git a/python3/vimspector/installer.py b/python3/vimspector/installer.py index 28624af..e610fe4 100644 --- a/python3/vimspector/installer.py +++ b/python3/vimspector/installer.py @@ -15,9 +15,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# TODO: Chnage `print` to some other mechanism that can be displayed in a vim -# buffer? - from urllib import request import contextlib import functools @@ -637,5 +634,4 @@ def AbortIfSUperUser( force_sudo ): print( "*** RUNNING AS SUPER USER DUE TO force_sudo! " " All bets are off. ***" ) else: - raise RuntimeError( - "This script should *not* be run as super user. Aborting." ) + sys.exit( "This script should *not* be run as super user. Aborting." ) diff --git a/python3/vimspector/utils.py b/python3/vimspector/utils.py index 21ac3ff..ad5bc9a 100644 --- a/python3/vimspector/utils.py +++ b/python3/vimspector/utils.py @@ -84,8 +84,6 @@ def OnCommandWithLogComplete( name, exit_code ): cb = COMMAND_HANDLERS.get( name ) if cb: cb( exit_code ) - else: - UserMessage( f'Job complete: { name } (exit status: { exit_code })' ) def SetUpCommandBuffer( cmd, name, api_prefix, completion_handler = None ):