File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ def loadSnippetFromFile(snippetPath):
52
52
def actionFromSnippet (snippetName , snippetDescription ):
53
53
if not snippetDescription :
54
54
shortName = os .path .basename (snippetName )
55
- if shortName .endsWith ('.py' ):
55
+ if shortName .endswith ('.py' ):
56
56
shortName = shortName [:- 3 ]
57
57
return "Snippets\\ " + shortName
58
58
else :
@@ -64,11 +64,11 @@ def executeSnippet(code, context):
64
64
if context .binaryView == None :
65
65
dock = DockHandler .getActiveDockHandler ()
66
66
if not dock :
67
- log_error ("Snippet triggered with no context and no dock handler." )
67
+ log_error ("Snippet triggered with no context and no dock handler. This should not happen. Please report reproduction steps if possible. " )
68
68
return
69
69
viewFrame = dock .getViewFrame ()
70
70
if not viewFrame :
71
- log_error ("Snippet triggered with no context and no view frame. This should not happen ." )
71
+ log_error ("Snippet triggered with no context and no view frame. Snippets require at least one open binary ." )
72
72
return
73
73
viewInterface = viewFrame .getCurrentViewInterface ()
74
74
context .binaryView = viewInterface .getData ()
You can’t perform that action at this time.
0 commit comments