DRY up error/warning message creation
include line in error/warning

resolves #15