Browse Source

add comment to help unknown error message changes

Chip Reed 1 year ago
parent
commit
f0699089a4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      core/tauri/src/window.rs

+ 2 - 0
core/tauri/src/window.rs

@@ -1569,6 +1569,8 @@ impl<R: Runtime> Window<R> {
         return Err(Error::InvokeKey);
         return Err(Error::InvokeKey);
       }
       }
       None => {
       None => {
+        // this specific string is tested against in `core/tests/invoke-key`.
+        // if this error changes then that integration test should be updated accordingly.
         let error = "received ipc message without a __TAURI_INVOKE_KEY__";
         let error = "received ipc message without a __TAURI_INVOKE_KEY__";
 
 
         #[cfg(feature = "tracing")]
         #[cfg(feature = "tracing")]