MCPcopy
hub / github.com/victorporof/Sublime-HTMLPrettify / handle_node_error

Function handle_node_error

src/py/utils/script_utils.py:60–65  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

58 """Prettifies the code at the given file path and handles errors and exceptions"""
59
60 def handle_node_error(err):
61 print(err)
62 msg = "Node.js was not found in the default path. Please specify the location."
63 if ok_cancel_dialog(msg):
64 open_sublime_settings(window)
65 return None
66
67 def handle_unknown_os_error(err):
68 print(err)

Callers 1

prettify_verboseFunction · 0.85

Calls 1

open_sublime_settingsFunction · 0.85

Tested by

no test coverage detected