================ @@ -19,10 +19,39 @@ #include "lldb/lldb-forward.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/Error.h" -#include <optional> +#include <chrono> +#include <system_error> namespace lldb_dap { +class EndOfFileError : public llvm::ErrorInfo<EndOfFileError> { +public: + static char ID; + + EndOfFileError() = default; + + void log(llvm::raw_ostream &OS) const override { + OS << "End of file reached."; ---------------- JDevlieghere wrote:
Errors needs to be able to be concatenated, so no capitalization/period. ```suggestion OS << "end of file reached"; ``` https://github.com/llvm/llvm-project/pull/130169 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits