More friendly error message

Add exception handling around the unpacking of "name,value = pair" to give a clearer error message.