Remove newlines from error messages

Fixes duplicate newlines when the errors are printed out.

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>