mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 05:12:29 +00:00
Fix garbled text in errors
This commit is contained in:
@@ -1945,7 +1945,7 @@ pub const ParseTask = struct {
|
||||
switch (err) {
|
||||
error.FileNotFound => {
|
||||
log.addErrorFmt(
|
||||
&Logger.Source.initEmptyFile(file_path.text),
|
||||
&Logger.Source.initEmptyFile(log.msgs.allocator.dupe(u8, file_path.text) catch unreachable),
|
||||
Logger.Loc.Empty,
|
||||
allocator,
|
||||
"File not found {}",
|
||||
@@ -1954,7 +1954,7 @@ pub const ParseTask = struct {
|
||||
},
|
||||
else => {
|
||||
log.addErrorFmt(
|
||||
&Logger.Source.initEmptyFile(file_path.text),
|
||||
&Logger.Source.initEmptyFile(log.msgs.allocator.dupe(u8, file_path.text) catch unreachable),
|
||||
Logger.Loc.Empty,
|
||||
allocator,
|
||||
"{s} reading file: {}",
|
||||
|
||||
Reference in New Issue
Block a user