1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Better error messages

This commit is contained in:
Tom Limoncelli
2020-09-19 15:01:33 -04:00
parent 9ad742fc22
commit 74ea58f514
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ var currentDirectory string
func ExecuteJavascript(file string, devMode bool) (*models.DNSConfig, error) {
script, err := ioutil.ReadFile(file)
if err != nil {
return nil, fmt.Errorf("reading js file %s: %s", file, err)
return nil, err
}
// Record the directory path leading up to this file.