Fix error message if nodename is too long

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