@@ -49,7 +49,7 @@ function renamerefactor(
49
49
:success => " _Local_ rename refactoring `$old ` ⟹ `$new ` succeeded"
50
50
)
51
51
catch err
52
- @ error err
52
+ return Dict ( : error => errdescription (old, new, err))
53
53
end
54
54
end
55
55
@@ -72,10 +72,8 @@ function renamerefactor(
72
72
73
73
return Dict (kind => desc)
74
74
catch err
75
- @ error err
75
+ return Dict ( : error => errdescription (old, new, err))
76
76
end
77
-
78
- return Dict (:error => " Rename refactoring `$old ` ⟹ `$new ` failed" )
79
77
end
80
78
81
79
islocalrefactor (bind, name) = bind === nothing || name ≠ bind. name
@@ -187,7 +185,7 @@ function contextdescription(old, mod, context)
187
185
gotouri = urigoto (mod, old)
188
186
"""
189
187
`$old ` isn't found in local bindings in the current context:
190
- <details><summary>Context</summary><pre><code>$(strip (context)) </code></p></details>
188
+ <details><summary>Context: </summary><pre><code>$(strip (context)) </code></p></details>
191
189
192
190
If you want a global rename refactoring on `$mod .$old `, you need to run this command
193
191
from its definition. <button>[Go to `$mod .$old `]($gotouri )</button>
@@ -222,3 +220,11 @@ function filedescription(mod, files)
222
220
</summary><ul>$(filelist) </ul></details>
223
221
"""
224
222
end
223
+
224
+ function errdescription (old, new, err)
225
+ """
226
+ Rename refactoring `$old ` ⟹ `$new ` failed.
227
+
228
+ <details><summary>Error:</summary><pre><code>$(errmsg (err)) </code></p></details>
229
+ """
230
+ end
0 commit comments