Parcourir la source

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

Lucas Nogueira il y a 4 ans
Parent
commit
ed5c1cd514
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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())),
     }
   }
 }