Skip to content

Commit 7e381c6

Browse files
committed
Add error
1 parent 0fe5eb3 commit 7e381c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

languageserver/integration/resolvers.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ package integration
2020

2121
import (
2222
"errors"
23+
"fmt"
2324
"path/filepath"
2425
"strings"
2526

@@ -74,7 +75,7 @@ func (r *resolvers) identifierImport(location common.IdentifierLocation) (string
7475
if location == stdlib.CryptoContractLocation {
7576
return string(coreContracts.Crypto()), nil
7677
}
77-
return "", nil
78+
return "", fmt.Errorf("unknown identifier location: %s", location)
7879
}
7980

8081
// addressContractNames returns a slice of all the contract names on the address location.

0 commit comments

Comments
 (0)