Skip to content

Commit

Permalink
minimal fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
inoas committed May 17, 2024
1 parent 3ce6a65 commit 6307101
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ stackframe
```plaintext
Trace to string:
#6 - stacky/internal/example.main - /0 - SOME_PATH/stacky/build/dev/erlang/stacky/_gleam_artefacts/stacky@internal@example.erl:8
#5 - gleam entrypoint module | stacky@@main.run - /1 - SOME_PATH/stacky/build/dev/erlang/stacky/_gleam_artefacts/stacky@@main.erl:11
#5 - gleam entrypoint | stacky@@main.run - /1 - SOME_PATH/stacky/build/dev/erlang/stacky/_gleam_artefacts/stacky@@main.erl:11
#4 - erl_eval.do_apply - /7 - erl_eval.erl:746
#3 - init.start_it - /1
#2 - init.start_em - /1
Expand Down
5 changes: 2 additions & 3 deletions src/stacky.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ pub fn erlang_module_name(stack_frame: StackFrame) -> String {
erlang_module_name
}

/// Gets the potential gleam module name from the erlang source file name
/// from the stack frame.
/// Gets the potential gleam module name from the erlang stack frame.
///
pub fn gleam_module_name(stack_frame: StackFrame) -> String {
let erlang_module_name =
Expand All @@ -191,7 +190,7 @@ pub fn gleam_module_name(stack_frame: StackFrame) -> String {
== False

case has_double_ats, has_ats {
True, _ -> "gleam entrypoint module | " <> erlang_module_name
True, _ -> "gleam entrypoint | " <> erlang_module_name
False, False -> erlang_module_name
False, True ->
erlang_module_name
Expand Down

0 comments on commit 6307101

Please sign in to comment.