Skip to content

Commit

Permalink
Update lib/beacon/loader.ex
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Berrien <[email protected]>
  • Loading branch information
leandrocp and APB9785 authored Dec 4, 2024
1 parent 81d7b68 commit f8bf159
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/beacon/loader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ defmodule Beacon.Loader do
rescue
error ->
if live_data_module?(module) do
# LiveData is user-provided code, which always has the possibility of errors.
# In this case, we want to ensure the original error is surfaced to the user for easier debugging.
reraise error, __STACKTRACE__
else
raise_invoke_error(site, error, module, function, args, opts[:context], __STACKTRACE__)
Expand Down

0 comments on commit f8bf159

Please sign in to comment.