starlight-obsidian 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/libs/obsidian.ts +4 -2
  2. package/package.json +1 -1
package/libs/obsidian.ts CHANGED
@@ -46,11 +46,13 @@ export async function getVault(config: StarlightObsidianConfig): Promise<Vault>
46
46
  const vaultPath = path.resolve(config.vault)
47
47
 
48
48
  if (!(await isDirectory(vaultPath))) {
49
- throwUserError('The provided vault path is not a directory.')
49
+ throwUserError(`The provided vault path is not a directory.\n> Provided path: ${vaultPath}`)
50
50
  }
51
51
 
52
52
  if (!(await isVaultDirectory(config, vaultPath))) {
53
- throwUserError('The provided vault path is not a valid Obsidian vault directory.')
53
+ throwUserError(
54
+ `The provided vault path is not a valid Obsidian vault directory and does not include an '.obsidian/app.json' file.\n> Provided path: ${vaultPath}`,
55
+ )
54
56
  }
55
57
 
56
58
  const options = await getVaultOptions(config, vaultPath)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starlight-obsidian",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "license": "MIT",
5
5
  "description": "Starlight plugin to publish Obsidian vaults.",
6
6
  "author": "HiDeoo <github@hideoo.dev> (https://hideoo.dev)",