It is reasonable for parse() to throw when it finds something wrong with the format. This seems to be the best spot to add the filename and rethrow. Also add a testcase to make sure we keep handling this error gracefully. Signed-off-by: Rafael Ávila de Espíndola <espindola@scylladb.com>