Repository: shuttle-hq/synth (language: rust)

Issue:
Namespace name not reported in error
**Describe the bug**
When an error is reported at a namespace, the file specified is reported instead of the actual name of the namespace (i.e. the directory name)

```
synth generate . | jq
Error: At namespace "."

Caused by:
...
```

**To Reproduce**
Create any invalid schema and run:
```
synth generate .
```

**Expected behavior**
```
synth generate . | jq
Error: At namespace "<namespace_name>"

Caused by:
...
```

**Environment (please complete the following information):**
 - Linux
 - 0.5.6



Discussion / hints:
I wasn't able to test a fix. Could you provide me with an invalid schema?

All my attempts to invalidate the schema gave me another error:


```
Error: Unable to open the namespace

Caused by:
    0: at file ./users.json
    1: Failed to parse collection
    2: unknown variant `email`, expected one of `null`, `bool`, `number`, `string`, `array`, `object`, `same_as`, `one_of`, `series`, `unique` at line 29 column 1`
```

Fix patch:
diff --git a/synth/src/cli/mod.rs b/synth/src/cli/mod.rs
index d601f9bb..2864c972 100644
--- a/synth/src/cli/mod.rs
+++ b/synth/src/cli/mod.rs
@@ -158,10 +158,12 @@ impl Cli {
         seed: u64,
         schema: Option<String>,
     ) -> Result<()> {
-        let namespace = self
-            .store
-            .get_ns(ns_path.clone())
-            .context("Unable to open the namespace")?;
+        let namespace = self.store.get_ns(ns_path.clone()).context(format!(
+            "Unable to open the namespace \"{}\"",
+            ns_path
+                .to_str()
+                .expect("The provided namespace is not a valid UTF-8 string")
+        ))?;
 
         let export_strategy: Box<dyn ExportStrategy> =
             DataSourceParams { uri: to, schema }.try_into()?;


Test patch: