Skip to content

Commit 3a04bbe

Browse files
author
StunxFS
committed
refact(core): change backtrace syntax
1 parent 5724c0d commit 3a04bbe

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/core/src/backtrace.c.ri

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func bt_print_callback(
5353
} else {
5454
string.from_raw(filename_ptr)
5555
};
56-
console_eprintln(" at {} ({}:{})", fn_name, file_name, lineno);
56+
console_eprintln(" at {} from \"{}\":{}", fn_name, file_name, lineno);
5757
}
5858
return 0;
5959
}

lib/core/src/errors.c.ri

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ struct ReturnTrace {
7070
func print(self) {
7171
for trace in self.traces {
7272
console_eprintln(
73-
" at {} ({}:{})", demangle_symbol(trace.name), trace.file,
74-
trace.line
73+
" at {} from \"{}\":{}", demangle_symbol(trace.name),
74+
trace.file, trace.line
7575
);
7676
}
7777
}

lib/core/src/string.c.ri

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import c/libc;
77
static emptyString = string(c"", 0, true);
88

99
#[boxed]
10-
public struct string < Stringable, Hashable {
10+
public struct string < Stringable, Hashable, Throwable {
1111
public ptr: [&]uint8;
1212
public len: usize;
1313
is_ref: bool;

0 commit comments

Comments
 (0)