include affected command in "operation not permitted" error messages

see issue #358