self-host fonts; proper error bubbling
This commit is contained in:
parent
68104a8102
commit
46baad7cf4
8 changed files with 63 additions and 34 deletions
|
|
@ -192,7 +192,7 @@ export function Editor({state, setState, onCancel, suggestionPriority}: EditorPr
|
|||
}
|
||||
}
|
||||
const resolved = evalEditorBlock(state, env);
|
||||
return <span className="editor">
|
||||
return <span className={"editor" + ((resolved.kind==="error") ? " error" : "")}>
|
||||
{renderBlock()}
|
||||
<div className="typeSignature">
|
||||
:: <Type type={getType(resolved)} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue