Просмотр исходного кода

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

Lucas Nogueira 4 лет назад
Родитель
Сommit
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())),
     }
   }
 }