- check CHANGELOG.md ver 0.2.1-alpha
This commit is contained in:
abelith committed 2026-08-14 19:14:18 +05:00
1 parent a8f164c241
commit 9434b02422
8 files changed
+59 -7

No files matched your search

+2 -1
View File
@@ -5,6 +5,7 @@ import (
"context"
"errors"
"fmt"
errors2 "github.com/abelith/spellbook/internal/errors"
"github.com/abelith/spellbook/internal/models"
"github.com/google/shlex"
"os/exec"
@@ -40,7 +41,7 @@ func (sc *SpellCaster) Cast(ctx context.Context, cast models.SpellCast) (models.
res.Err = err
return res, nil
}
return res, fmt.Errorf("failed to cast spell: %w", err)
return res, fmt.Errorf("%w: %w", errors2.ErrFailedToCast, err)
}
res.ExitCode = 0