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

Time Crash time.go:1126 #40439

Closed
Dontmindmes opened this issue Jul 28, 2020 · 3 comments
Closed

Time Crash time.go:1126 #40439

Dontmindmes opened this issue Jul 28, 2020 · 3 comments

Comments

@Dontmindmes
Copy link

@Dontmindmes Dontmindmes commented Jul 28, 2020

https://i.imgur.com/1VkYgnG.png

This is the code im using
https://i.imgur.com/SPGClVC.png

`The system cannot find the path specified.
panic: time: missing Location in call to Time.In

goroutine 1 [running]:
time.Time.In(...)
c:/go/src/time/time.go:1126
main.main()`

When I run this on my machine with Go installed it runs perfectly but when I compile and run on my NUC with no golang installed it causes that error, Windows 10 home

@davecheney
Copy link
Contributor

@davecheney davecheney commented Jul 28, 2020

@Dontmindmes can you please post your code samples as text, not images.

@davecheney
Copy link
Contributor

@davecheney davecheney commented Jul 28, 2020

The error handling on this line is not correct

https://github.com/Dontmindmes/GHome-Athan-System/blob/master/Application/main.go#L161

If an error occurs then the state of any other variables returned becomes unknown and they cannot be used safely.

Thank you for raising this issue. Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For asking questions, see:

@davecheney davecheney closed this Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.