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:
committed by
Tom Limoncelli
parent
74ea58f514
commit
d56ffd3698
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user