When module cannot be added, fail with a clear error (fixes #25)