return error message in case of invalid format
Merge pull request #14 from physikerwelt/InvalidFormat

Return error message in case of invalid format