Fix error message (missing dimension name).

Fixes #1