giteabot backport / giteabot (push) Canceled after 0s
giteabot / giteabot (push) Canceled after 0s
release-nightly / nightly-binary (push) Canceled after 0s
release-nightly / nightly-container (push) Canceled after 0s
cache-seeder / gobuild (push) Canceled after 0s
cache-seeder / lint (bindata, lint-backend) (push) Canceled after 0s
release-nightly-snapcraft / build-and-publish (push) Canceled after 0s
Includes direct password setup links in registration emails. Assisted-by: Codex:GPT-5
11 lines
396 B
TypeScript
11 lines
396 B
TypeScript
import {errorMessage} from '../modules/errors.ts';
|
|
|
|
export function displayError(el: Element, err: unknown): void {
|
|
el.classList.remove('is-loading');
|
|
const errorNode = document.createElement('pre');
|
|
errorNode.setAttribute('class', 'ui message error markup-block-error');
|
|
errorNode.textContent = errorMessage(err);
|
|
el.before(errorNode);
|
|
el.setAttribute('data-render-done', 'true');
|
|
}
|