Skip to content

Commit

Permalink
Add error
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Oct 24, 2024
1 parent 0fe5eb3 commit 7e381c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion languageserver/integration/resolvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package integration

import (
"errors"
"fmt"
"path/filepath"
"strings"

Expand Down Expand Up @@ -74,7 +75,7 @@ func (r *resolvers) identifierImport(location common.IdentifierLocation) (string
if location == stdlib.CryptoContractLocation {
return string(coreContracts.Crypto()), nil
}
return "", nil
return "", fmt.Errorf("unknown identifier location: %s", location)
}

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

0 comments on commit 7e381c6

Please sign in to comment.