We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7126d44 commit 5749c9eCopy full SHA for 5749c9e
tmuxp/cli.py
@@ -779,6 +779,17 @@ def command_shell_plus(
779
"""
780
server = Server(socket_name=socket_name, socket_path=socket_path)
781
782
+ try:
783
+ server.sessions
784
+ except LibTmuxException as e:
785
+ if 'No such file or directory' in str(e):
786
+ raise LibTmuxException(
787
+ 'no tmux session found. Start a tmux session and try again. \n'
788
+ 'Original error: ' + str(e)
789
+ )
790
+ else:
791
+ raise e
792
+
793
current_pane = None
794
if os.getenv('TMUX_PANE') is not None:
795
try:
0 commit comments