chore(developer): add new severity types to message command

This commit is contained in:
Marc Durdin 2025-01-22 11:10:54 +07:00
parent f9cb1927c9
commit d4513a1d51

View file

@ -178,7 +178,7 @@ function allMessageDetails(): CompilerMessageDetail[] {
const toTitleCase = (s: string) => s.substring(0, 1).toUpperCase() + s.substring(1).toLowerCase();
function getMessageDetail(cls: any, id: string, escapeMarkdown: boolean): CompilerEvent {
const o = /^(INFO|HINT|WARN|ERROR|FATAL)_([A-Za-z0-9_]+)$/.exec(id);
const o = /^(DEBUG|VERBOSE|INFO|HINT|WARN|ERROR|FATAL)_([A-Za-z0-9_]+)$/.exec(id);
if(!o) {
throw new Error(`Unexpected compiler message ${id}, does not match message error format`);
}