summaryrefslogtreecommitdiffstats
path: root/chrome/common/bzip2_error_handler.cc
blob: e66bcf3e055c033e415a5cbbc8939ec4dbcdc834 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <ostream>

#include "base/logging.h"

// We define BZ_NO_STDIO in third_party/bzip2 to remove its internal STDERR
// error reporting.  This requires us to export our own error handler.
extern "C"
void bz_internal_error(int errcode) {
  LOG(FATAL) << "bzip2 internal error: " << errcode;
}