fix: spelling case problems

This commit is contained in:
2023-10-04 02:27:05 +08:00
parent f5c2ce2468
commit fa24de805a
6 changed files with 17 additions and 17 deletions

View File

@@ -204,7 +204,7 @@ class YukiMemberHookCreator internal constructor(private val packageParam: Packa
preHookMembers.forEach { (_, m) -> m.hook() }
}.onFailure {
if (onHookClassNotFoundFailureCallback == null)
YLog.innerE(msg = "Hook initialization failed because got an Exception", e = it)
YLog.innerE(msg = "Hook initialization failed because got an exception", e = it)
else onHookClassNotFoundFailureCallback?.invoke(it)
}
isDisableCreatorRunHook.not() && hookClass.instance == null ->
@@ -703,8 +703,8 @@ class YukiMemberHookCreator internal constructor(private val packageParam: Packa
*/
private fun hookErrorMsg(e: Throwable, member: Member? = null) =
if (hookClass.isPlaceholder)
YLog.innerE("Try to hook ${member?.let { "[$it]" } ?: "nothing"} got an Exception", e)
else YLog.innerE("Try to hook [${hookClass.instance ?: hookClass.name}]${member?.let { "[$it]" } ?: ""} got an Exception", e)
YLog.innerE("Try to hook ${member?.let { "[$it]" } ?: "nothing"} got an exception", e)
else YLog.innerE("Try to hook [${hookClass.instance ?: hookClass.name}]${member?.let { "[$it]" } ?: ""} got an exception", e)
/**
* 判断是否没有设置 Hook 过程中的任何异常拦截

View File

@@ -265,7 +265,7 @@ class YukiResourcesHookCreator internal constructor(internal val packageParam: P
}
}.onFailure {
if (onHookFailureCallback == null)
YLog.innerE("Resources Hook got an Exception [$tag]", it)
YLog.innerE("Resources Hook got an exception [$tag]", it)
else onHookFailureCallback?.invoke(it)
}
}

View File

@@ -442,7 +442,7 @@ internal object AppParasitics {
}
}
isActivityProxyRegistered = true
}.onFailure { YLog.innerE("Activity Proxy initialization failed because got an Exception", it) }
}.onFailure { YLog.innerE("Activity Proxy initialization failed because got an exception", it) }
}
/**

View File

@@ -76,7 +76,7 @@ internal object HandlerDelegateCaller {
set(intent.getParcelableExtra(ActivityProxyConfig.proxyIntentName))
}
}
}.onFailure { YLog.innerE("Activity Proxy got an Exception in msg.what [$LAUNCH_ACTIVITY]", it) }
}.onFailure { YLog.innerE("Activity Proxy got an exception in msg.what [$LAUNCH_ACTIVITY]", it) }
EXECUTE_TRANSACTION -> msg.obj?.runCatching client@{
ClientTransactionClass.method { name = "getCallbacks" }.ignored().get(this).list<Any?>().takeIf { it.isNotEmpty() }
?.forEach { item ->
@@ -100,7 +100,7 @@ internal object HandlerDelegateCaller {
}
}
}
}?.onFailure { YLog.innerE("Activity Proxy got an Exception in msg.what [$EXECUTE_TRANSACTION]", it) }
}?.onFailure { YLog.innerE("Activity Proxy got an exception in msg.what [$EXECUTE_TRANSACTION]", it) }
}
return baseInstance?.handleMessage(msg) ?: false
}