diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-03-21 13:42:37 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-03-21 13:42:37 +0000 |
| commit | 459cb212e5b6ca8da75436aa42ac6d1285529707 (patch) | |
| tree | f2176f8632feca3187f6acdc410bd7076c5bd01a /src/remote.hh | |
| parent | 2cdf5788347f3d837ada214d209f7d7bc92c8386 (diff) | |
Correctly handle failing to connect to the given session in client mode
Diffstat (limited to 'src/remote.hh')
| -rw-r--r-- | src/remote.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/remote.hh b/src/remote.hh index ac7a3cec..3881f349 100644 --- a/src/remote.hh +++ b/src/remote.hh @@ -10,6 +10,13 @@ namespace Kakoune struct peer_disconnected {}; +struct connection_failed : runtime_error +{ + connection_failed(const String& filename) + : runtime_error{"connect to " + filename + " failed"} + {} +}; + // A remote client handle communication between a client running on the server // and a user interface running on the local process. class RemoteClient |
