Skip to content

Commit 44ca2d7

Browse files
committed
use logger to print the install.sh unavailable message
1 parent 113f345 commit 44ca2d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/site.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func New(opts *Options) *Handler {
166166

167167
handler.installScript, err = parseInstallScript(opts.SiteFS, opts.BuildInfo)
168168
if err != nil {
169-
_, _ = fmt.Fprintf(os.Stderr, "install.sh will be unavailable: %v", err.Error())
169+
opts.Logger.Warn(context.Background(), fmt.Sprintf("install.sh will be unavailable: %s", err.Error()))
170170
}
171171

172172
return handler

0 commit comments

Comments
 (0)