Skip to content

Commit 03550b8

Browse files
committed
Fix issue #2.
Fix issue #3.
1 parent e83ef9a commit 03550b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

funcs/logger.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ class LogRecordFormatter:
471471
var stack: Array[Dictionary] = p_log_record["stack"]
472472
for frame in stack:
473473
var source: String = frame["source"]
474-
var line: String = frame["line"]
474+
var line: int = frame["line"]
475475
var function: String = frame["function"]
476476
formatted_message += "\n\tAt: %s:%d:%s()" % [
477477
source,
@@ -696,5 +696,5 @@ const ERROR_MESSAGES = {
696696

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

0 commit comments

Comments
 (0)