showErrorAndDisablePlugin
Displays an error message as a notice, logs it to the console, and disables the specified plugin.
Import:
import { showErrorAndDisablePlugin } from '@mnaoumov/obsidian-lib/plugin/plugin';Signature:
function showErrorAndDisablePlugin(plugin: Plugin, message: string): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
plugin |
Plugin | The plugin to disable. |
message |
string | The error message to display and log. |
Returns: Promise<void> — A Promise that resolves when the plugin is disabled.