浏览代码

fix: error message on `path` API usage when not allowlisted

Lucas Nogueira 4 年之前
父节点
当前提交
ed5c1cd514
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/tauri/src/endpoints/file_system.rs

+ 1 - 1
core/tauri/src/endpoints/file_system.rs

@@ -207,7 +207,7 @@ impl Cmd {
         resolve_path_handler(&config, package_info, path, directory).map(Into::into)
       }
       #[cfg(not(fs_path))]
-      Self::ResolvePath { .. } => Err(crate::Error::ApiNotAllowlisted("fs > pathApi".to_string())),
+      Self::ResolvePath { .. } => Err(crate::Error::ApiNotAllowlisted("fs > path".to_string())),
     }
   }
 }