sapling/eden/fs/inodes/EdenMountError.h
Chad Austin bf85e7ea15 propagate bind mount errors
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
2018-10-09 16:39:45 -07:00

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