Skip to content

Commit 384e548

Browse files
committed
improved dwarf error message when debugging info is not present.
1 parent 02ba354 commit 384e548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/debug/dwarf/open.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func New(abbrev, aranges, frame, info, line, pubnames, ranges, str []byte) (*Dat
7979
// 32-bit DWARF: 4 byte length, 2 byte version.
8080
// 64-bit DWARf: 4 bytes of 0xff, 8 byte length, 2 byte version.
8181
if len(d.info) < 6 {
82-
return nil, DecodeError{"info", Offset(len(d.info)), "too short. make sure you compiled with debugging information."}
82+
return nil, DecodeError{"info", Offset(len(d.info)), "no debugging information found."}
8383
}
8484
offset := 4
8585
if d.info[0] == 0xff && d.info[1] == 0xff && d.info[2] == 0xff && d.info[3] == 0xff {

0 commit comments

Comments
 (0)