Return error instead of custom alias from headless

This commit is contained in:
FIGBERT 2023-08-09 11:31:20 -07:00
parent b7a4d58637
commit 80c8cd62ef
No known key found for this signature in database
GPG key ID: 67F1598D607A844B
2 changed files with 1 additions and 3 deletions

View file

@ -22,7 +22,7 @@ type Config struct {
MxID id.UserID
}
func Init(conf Config, updates chan fmt.Stringer) Completed {
func Init(conf Config, updates chan fmt.Stringer) error {
// setup package dir
os.Setenv("GOMUKS_ROOT", conf.OutputDir)
updates <- exportDirSet{dir: conf.OutputDir}

View file

@ -61,5 +61,3 @@ type processingSync struct{}
func (msg processingSync) String() string {
return "Processing sync response…"
}
type Completed error