Removed unnecesary printing of error messages

Fixes #46