/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/env/lib/runtime/errors.js
28 строк
663 B
Riad Benguella
wp-env: Fix mixed runtime detection issues (#75057)
30 янв 2026, 20:38
Не верифицирован
30 янв 2026, 20:38
81a571d
Код
Авторство
О чём код?
'use strict'; /** * Error thrown when a command is not supported by the current runtime. */ class UnsupportedCommandError extends Error { constructor( command ) { super( `The '${ command }' command is not supported in the Playground runtime at the moment.` ); this.name = 'UnsupportedCommandError'; } } /** * Error thrown when the environment has not been initialized. */ class EnvironmentNotInitializedError extends Error { constructor() { super( 'Environment not initialized. Run `wp-env start` first.' ); this.name = 'EnvironmentNotInitializedError'; } } module.exports = { UnsupportedCommandError, EnvironmentNotInitializedError, };