Commit e6846460 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[cache] Use raise_on_error decorator for commands

parent f01b5073
......@@ -29,15 +29,20 @@ import os
import click
import fnmatch
import logging
logger = logging.getLogger(__name__)
import simplejson
from . import common
from beat.cmdline.scripts.click_helper import AliasedGroup
from beat.core.data import CachedDataSource, load_data_index
from beat.core.utils import NumpyJSONEncoder
from . import common
from .decorators import raise_on_error
logger = logging.getLogger(__name__)
def get_paths(config):
func = lambda z: z.split('.', 1)[0]
......@@ -135,6 +140,7 @@ def info(ctx, paths, sizes):
@cache.command()
@click.argument('paths', nargs=-1)
@click.pass_context
@raise_on_error
def view(ctx, paths):
'''Displays information about a particular cache file
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment