Display error message if adding part fails

also more robust against undefined parameters.

fixes #90