Fixed bug in error message

If you tried to create a Property with a name already in use, you got
"Error: object [Object]".  Now actually shows the error.