Skip to content

Commit

Permalink
Fix issue #2.
Browse files Browse the repository at this point in the history
Fix issue #3.
  • Loading branch information
raldone01 committed Jun 6, 2024
1 parent e83ef9a commit 03550b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions funcs/logger.gd
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ class LogRecordFormatter:
var stack: Array[Dictionary] = p_log_record["stack"]
for frame in stack:
var source: String = frame["source"]
var line: String = frame["line"]
var line: int = frame["line"]
var function: String = frame["function"]
formatted_message += "\n\tAt: %s:%d:%s()" % [
source,
Expand Down Expand Up @@ -696,5 +696,5 @@ const ERROR_MESSAGES = {

static func format_error(p_error: int) -> String:
if ERROR_MESSAGES.has(p_error):
return ERROR_MESSAGES[error]
return ERROR_MESSAGES[p_error]
return "Unknown p_error (%d)." % p_error

0 comments on commit 03550b8

Please sign in to comment.