def error_label(error):
    """Get the alert box/label coloring based on error found."""
    levels = dict()
    levels['wrong-import-position'] = 'info'
    levels['fatal'] = 'danger'
    levels['MC0001'] = 'warning'  # McCabe's cyclomatic complexity warning.
    if error not in levels:
        return 'warning'
    return levels[error]