Handle - positions in errors

This commit is contained in:
Sauyon Lee
2021-08-17 12:35:04 -07:00
parent 5c7590db53
commit f20922dcc7

View File

@@ -458,7 +458,7 @@ func (extraction *Extraction) extractError(tw *trap.Writer, err packages.Error,
e error
)
if pos == "" {
if pos == "" || pos == "-" {
// extract a dummy file
wd, e := os.Getwd()
if e != nil {