Skip to content

Commit

Permalink
fix(BRIDGE-29): improved reporting of non-accessible cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectroNafta committed May 14, 2024
1 parent 0266b0f commit ed4881b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package gluon

import (
"crypto/tls"
"fmt"
"io"
"os"
"time"
Expand Down Expand Up @@ -65,7 +66,7 @@ func (builder *serverBuilder) build() (*Server, error) {
}

if err := os.MkdirAll(builder.dataDir, 0o700); err != nil {
return nil, err
return nil, fmt.Errorf("failed to access or create local cache: %w", err)
}

if builder.databaseDir == "" {
Expand Down

0 comments on commit ed4881b

Please sign in to comment.