Skip to content

Commit

Permalink
deptcharge: Excluded operation log message touch-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
jynik committed Oct 22, 2020
1 parent 45dedc1 commit 00b708c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/depthcharge/operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,13 @@ def check_requirements(cls, ctx):
err = ctx.arch.name.lower() != s['arch'].lower()

if err:
raise OperationNotSupported(cls, 'Not available on ' + ctx.arch.description)
raise OperationNotSupported(cls, 'Not available for ' + ctx.arch.description + ' architecture.')

# Does this operation require that we're allowed to induce a crash / reset / reboot?
# If so, is the user permitting this?
s['crash_or_reboot'] = cls._required.get('crash_or_reboot', False)
if s['crash_or_reboot'] and not ctx._allow_reboot:
err = 'Operation requires crash or reboot, but opt-in not specified'
err = 'Operation requires crash or reboot, but opt-in not specified.'
raise OperationNotSupported(cls, err)

# Required command check
Expand Down

0 comments on commit 00b708c

Please sign in to comment.