Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8cfd0ff

Browse files
committed
Merge remote-tracking branch 'origin/cj/cache-embedded-postgres' into cj/cache-embedded-postgres
2 parentsf66007c +dc585db commit8cfd0ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎scripts/embedded-pg/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ func main() {
2222
postgresPath=customPath
2323
}
2424
iferr:=os.MkdirAll(postgresPath,os.ModePerm);err!=nil {
25-
panic(err)
25+
log.Fatalf("Failed to create directory %s: %v",postgresPath,err)
2626
}
2727
ifcachePath=="" {
2828
cachePath=filepath.Join(postgresPath,"cache")
2929
}
3030
iferr:=os.MkdirAll(cachePath,os.ModePerm);err!=nil {
31-
panic(err)
31+
log.Fatalf("Failed to create directory %s: %v",cachePath,err)
3232
}
3333

3434
ep:=embeddedpostgres.NewDatabase(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp