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

Display file where error occurred

This commit is contained in:
Patrik Kernstock
2020-09-19 22:14:12 +01:00
committed by Tom Limoncelli
parent 74ea58f514
commit d56ffd3698

View File

@@ -110,7 +110,7 @@ func require(call otto.FunctionCall) otto.Value {
}
if err != nil {
throw(call.Otto, err.Error())
throw(call.Otto, fmt.Sprintf("File %s: %s", filepath.Base(relFile), err.Error()))
}
// Pop back to the old directory.