covalent-highlight-nightly
covalent-highlight-nightly copied to clipboard
Nondescript "The system cannot find the path specified" error running from covalent-quickstart
Feature Request
Nondescript "fsnotify error:GetFileAttributes: The system cannot find the path specified."
error when running covalent quickstart with version 0.7.1. The error was because I hadn't updated my version of the quickstart to have the configuration in the right directory but the error message was unhelpful.
I assume that this is being thrown from config/watch.go
$ npm run start-api
cd mock-api && covalent-data -port 8081 &
time="2017-10-14T15:27:07-06:00" level=info msg="##################################################################"
time="2017-10-14T15:27:07-06:00" level=info msg="######## ########"
time="2017-10-14T15:27:07-06:00" level=info msg="######## Teradata Covalent Atomic Data mock API server ########"
time="2017-10-14T15:27:07-06:00" level=info msg="######## Copyright 2016 by Teradata. All rights reserved. ########"
time="2017-10-14T15:27:07-06:00" level=info msg="######## This software is covered under the MIT license. ########"
time="2017-10-14T15:27:07-06:00" level=info msg="######## ########"
time="2017-10-14T15:27:07-06:00" level=info msg="##################################################################"
time="2017-10-14T15:27:07-06:00" level=info
time="2017-10-14T15:27:07-06:00" level=info msg="Initializing HTTP router..."
time="2017-10-14T15:27:07-06:00" level=info msg="Importing schemas for CRUD objects and seeding initial mock data..."
time="2017-10-14T15:27:07-06:00" level=fatal msg="fsnotify error:GetFileAttributes: The system cannot find the path specified."
What is the expected behavior?
The error should include the file path it could not find.
What is the motivation / use case for changing the behavior?
Error messages should help users fix configuration issues
Which version of golang, and which browser and OS does this issue affect?
covalent-data version 0.7.1 run via npm on Windows 7 Pro.
Did this work in previous versions of go? Please also test with the latest stable versions.
Other information
I don't know go but I would assume that you could add v
as a parameter of the log.Fatal("fsnotify error:", err)
or add another logging line with the file path.
https://github.com/Teradata/covalent-data/blob/c956ead0ba47afc044b81154293fdc51e16e9910/config/watch.go#L17-L22