Fix error message if nodename is too long

Signed-off-by: Rafal Wojdyla <ravwojdyla@gmail.com>