factor exception out into show command