better suited err msg

This commit is contained in:
Ricardo Guilherme Schmidt 2018-10-12 11:20:23 -03:00 committed by Barry G
parent 5f3ef8842c
commit 67c561dc4a
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ contract UsernameRegistrar is Controlled, ApproveAndCallFallBack {
internal
returns(bytes32 namehash)
{
require(state == RegistrarState.Active, "Registry unavailable.");
require(state == RegistrarState.Active, "Registry not active.");
namehash = keccak256(abi.encodePacked(ensNode, _label));
require(ensRegistry.owner(namehash) == address(0), "ENS node already owned.");
require(accounts[_label].creationTime == 0, "Username already registered.");