Skip to content

Commit

Permalink
Always clear script errors on load
Browse files Browse the repository at this point in the history
  • Loading branch information
dsrw committed Oct 11, 2023
1 parent de49101 commit d0abe6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/script_controllers/scripting.nim
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ proc load_script*(self: Worker, unit: Unit, timeout = script_timeout) =
let ctx = unit.script_ctx
try:
self.active_unit = unit
unit.errors.clear

if not state.paused:
let module_name = ctx.script.split_file.name
Expand Down

0 comments on commit d0abe6d

Please sign in to comment.