Skip to content

Commit

Permalink
fix: surface error when failing to start kernel (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
benlubas committed Apr 14, 2024
1 parent 66b11de commit 7d97cab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rplugin/python3/molten/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,9 @@ def _initialize_buffer(self, kernel_name: str, shared=False) -> MoltenKernel | N
self.canvas.wezterm_split()

return molten
except:
except Exception as e:
notify_error(
self.nvim,
f"Could not initialize kernel named '{kernel_name}'."
self.nvim, f"Could not initialize kernel named '{kernel_name}'.\nCaused By: {e}"
)

def add_kernel(self, buffer: Buffer, kernel_id: str, kernel: MoltenKernel):
Expand Down

0 comments on commit 7d97cab

Please sign in to comment.