Don't spam echo when jobs finish, revert sudo exit

This commit is contained in:
Ben Jackson 2020-07-22 16:01:44 +01:00
commit c50c99ef34
2 changed files with 1 additions and 7 deletions

View file

@ -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." )

View file

@ -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 ):