diff --git a/eth/api.go b/eth/api.go
index d048904f3621aa2d5adfca818cfbbd66fe240d4e..f5f942c27d62a4cd925b9579d97d57a9e20b4fcf 100644
--- a/eth/api.go
+++ b/eth/api.go
@@ -113,7 +113,7 @@ func (s *PublicEthereumAPI) GasPrice() *big.Int {
 // GetCompilers returns the collection of available smart contract compilers
 func (s *PublicEthereumAPI) GetCompilers() ([]string, error) {
 	solc, err := s.e.Solc()
-	if err != nil && solc != nil {
+	if err == nil && solc != nil {
 		return []string{"Solidity"}, nil
 	}