Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program terminates without errors when using the resource.syso #44

Closed
lieuweberg opened this issue Jul 2, 2020 · 0 comments
Closed

Comments

@lieuweberg
Copy link

lieuweberg commented Jul 2, 2020

My program quits at the following code when using the resource.syso generated from this package. Without it, it works fine. There are no errors. I've no clue what's going on here, since the program can create a directory and a log file just fine.

	// Open the storage db (access token, etc.)
	db, err = sql.Open("sqlite3", makePath("storage.db"))
	if err != nil {
		log.Printf("Error opening storage.db: %s", err)
	}
	
	log.Print("THIS IS LOGGED")

	if _, err = db.Exec(`CREATE TABLE IF NOT EXISTS data(
		key		STRING	PRIMARY KEY NOT NULL,
		value	STRING	NOT NULL
	)`); err != nil {
		log.Printf("Error creating storage.db table: %s", err)
	}
	
	log.Print("THIS ISN'T LOGGED (program has terminated)")

This is my versioninfo.json: https://hasteb.in/oficovut.json
And this is my manifest (though same issue without it): https://hasteb.in/wuyeyira.xml

edit: After a lot of digging I found the issue, see my reply here: #39

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

No branches or pull requests

1 participant