Skip to content

fix theme upload error bug#136

Merged
1379 merged 1 commit into
go-sonic:masterfrom
popstk:master
Feb 1, 2023
Merged

fix theme upload error bug#136
1379 merged 1 commit into
go-sonic:masterfrom
popstk:master

Conversation

@popstk

@popstk popstk commented Feb 1, 2023

Copy link
Copy Markdown
Contributor
        diskFile, err := os.OpenFile(diskFilePath, os.O_WRONLY|os.O_CREATE|os.O_EXCL, 0o444)
	if !errors.Is(err, os.ErrExist) {
		return nil, xerr.WithStatus(err, xerr.StatusInternalServerError).WithMsg("create file error")
	}

if err == nil

@1379 1379 merged commit 5f49dd5 into go-sonic:master Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants