mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
Handle - positions in errors
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user