Started building out the site.

This commit is contained in:
Leon Mika 2025-01-18 16:02:35 +11:00
parent f119683b57
commit b62458d7cd
14 changed files with 368 additions and 31 deletions

View file

@ -2,6 +2,7 @@ package repl
import (
"context"
"errors"
"fmt"
"io"
"os"
@ -15,6 +16,9 @@ type NoResults struct{}
func (r *REPL) EvalAndDisplay(ctx context.Context, expr string) error {
res, err := r.inst.Eval(ctx, expr)
if err != nil {
if errors.Is(err, ucl.ErrNotConvertable) {
return nil
}
return err
}