chore: fix async_work status typo (#1883)

This commit is contained in:
Ranger 2024-01-02 13:23:45 +08:00 committed by GitHub
parent c73cb31c11
commit 4d82737efe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,7 +138,7 @@ unsafe extern "C" fn complete<T: Task>(
unsafe { sys::napi_reject_deferred(env, deferred, JsError::from(e).into_value(env)) };
debug_assert!(
status == sys::Status::napi_ok,
"Reject promise failedm status: {:?}",
"Reject promise failed, status: {:?}",
crate::Status::from(status)
);
}