mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
bf85e7ea15
Summary: This explains why some people ended up with broken bind mounts. If bind mount creation ever failed, eden start would silently ignore the error, leaving buck-out as a mutable directory in the Eden overlay itself. Reviewed By: wez, strager Differential Revision: D10118612 fbshipit-source-id: ce99df4216f6815c24dc8283e55a9a30d58d29a1
25 lines
654 B
C++
25 lines
654 B
C++
/*
|
|
* Copyright (c) 2018-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include <stdexcept>
|
|
|
|
namespace facebook {
|
|
namespace eden {
|
|
|
|
class EdenMountError : public std::runtime_error {
|
|
public:
|
|
explicit EdenMountError(const std::string& what) : std::runtime_error{what} {}
|
|
explicit EdenMountError(const char* what) : std::runtime_error{what} {}
|
|
};
|
|
|
|
} // namespace eden
|
|
} // namespace facebook
|