Skip to content

HAMUR_E0206: A file rewritten by hamur migrate does not parse

A file rewritten by hamur migrate does not parse. Error HAMUR_E0206 belongs to hamur, config, environment and command line (0001 – 0999).

Message

text
HAMUR_E0206 <file>: the rewrite does not parse (<message>); nothing was written

Cause

A script --write rewrote fails Bun's parser, so one of the migration table's rewrites wrote broken code. Nothing was written.

Fix

Report the file and the message as a bug of the migration table; until it is fixed, rewrite the file by hand and run the command again.