Add new lines
@@ -394,9 +394,9 @@ class BIDSLayout(object):
for k, v in saved_args.items():
if instance_args[k] != v:
raise ValueError(
- f"Initialization argument ({k}) do not match for "
- f"database_path: {database_path}. Saved value: f{v}."
- f"Current value: f{instance_args[k]}"
+ f"Initialization argument (\"{k}\") do not match for "
+ f"database_path: {database_path}.\nSaved value: f{v}."
+ f"\nCurrent value: f{instance_args[k]}"
)
else:
engine = self.session.get_bind()
