std: Use {s} instead of {} when printing strings
This commit is contained in:
@@ -186,7 +186,7 @@ pub const Thread = struct {
|
||||
@compileError(bad_startfn_ret);
|
||||
}
|
||||
startFn(arg) catch |err| {
|
||||
std.debug.warn("error: {}\n", .{@errorName(err)});
|
||||
std.debug.warn("error: {s}\n", .{@errorName(err)});
|
||||
if (@errorReturnTrace()) |trace| {
|
||||
std.debug.dumpStackTrace(trace.*);
|
||||
}
|
||||
@@ -247,7 +247,7 @@ pub const Thread = struct {
|
||||
@compileError(bad_startfn_ret);
|
||||
}
|
||||
startFn(arg) catch |err| {
|
||||
std.debug.warn("error: {}\n", .{@errorName(err)});
|
||||
std.debug.warn("error: {s}\n", .{@errorName(err)});
|
||||
if (@errorReturnTrace()) |trace| {
|
||||
std.debug.dumpStackTrace(trace.*);
|
||||
}
|
||||
@@ -281,7 +281,7 @@ pub const Thread = struct {
|
||||
@compileError(bad_startfn_ret);
|
||||
}
|
||||
startFn(arg) catch |err| {
|
||||
std.debug.warn("error: {}\n", .{@errorName(err)});
|
||||
std.debug.warn("error: {s}\n", .{@errorName(err)});
|
||||
if (@errorReturnTrace()) |trace| {
|
||||
std.debug.dumpStackTrace(trace.*);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user