Revert "fix: debugger errors CE" (#30639)
Reverts appsmithorg/appsmith#30596 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Streamlined error message content during plugin action execution. - Simplified entity payload information handling. - **Chores** - Restricted the scope of a debugger utility function for internal use. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
parent
e11c05495b
commit
7e85ad9d14
|
|
@ -15,7 +15,6 @@ export const getEntityPayloadInfo: Record<
|
|||
iconId: string;
|
||||
id: string;
|
||||
pluginType?: PluginType | string;
|
||||
entityName?: string;
|
||||
}
|
||||
> = {
|
||||
[ENTITY_TYPE.WIDGET]: (entityConfig) => {
|
||||
|
|
|
|||
|
|
@ -622,12 +622,12 @@ export default function* executePluginActionTriggerSaga(
|
|||
});
|
||||
if (onError) {
|
||||
throw new PluginTriggerFailureError(
|
||||
createMessage(ERROR_ACTION_EXECUTE_FAIL, pluginActionNameToDisplay),
|
||||
createMessage(ERROR_ACTION_EXECUTE_FAIL, action.name),
|
||||
[payload.body, params],
|
||||
);
|
||||
} else {
|
||||
throw new PluginTriggerFailureError(
|
||||
createMessage(ERROR_PLUGIN_ACTION_EXECUTE, pluginActionNameToDisplay),
|
||||
createMessage(ERROR_PLUGIN_ACTION_EXECUTE, action.name),
|
||||
[],
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ function logLatestEvalPropertyErrors(
|
|||
messages: errorMessages,
|
||||
source: {
|
||||
id: payloadInfo.id,
|
||||
name: payloadInfo.entityName || entityName,
|
||||
name: entityName,
|
||||
type: entityType as ENTITY_TYPE,
|
||||
propertyPath: logPropertyPath,
|
||||
pluginType: payloadInfo.pluginType,
|
||||
|
|
|
|||
|
|
@ -341,7 +341,7 @@ export function* startAppEngine(action: ReduxAction<AppEnginePayload>) {
|
|||
}
|
||||
}
|
||||
|
||||
export function* resetDebuggerLogs() {
|
||||
function* resetDebuggerLogs() {
|
||||
// clear all existing debugger errors
|
||||
const debuggerErrors: ReturnType<typeof getDebuggerErrors> =
|
||||
yield select(getDebuggerErrors);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user