report error if extra file not exist
This commit is contained in:
@@ -561,10 +561,7 @@ func compileExtraFiles(ctx *context, verbose bool) ([]string, error) {
|
|||||||
|
|
||||||
// Check if file exists
|
// Check if file exists
|
||||||
if _, err := os.Stat(srcFile); os.IsNotExist(err) {
|
if _, err := os.Stat(srcFile); os.IsNotExist(err) {
|
||||||
if verbose {
|
return nil, fmt.Errorf("extra file not found: %s", srcFile)
|
||||||
fmt.Fprintf(os.Stderr, "Warning: extra file not found: %s\n", srcFile)
|
|
||||||
}
|
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate output file name
|
// Generate output file name
|
||||||
|
|||||||
Reference in New Issue
Block a user