Proper concatenation of error info strings

This patch fixes #645, please review.

Thanks in advance.