Skip to content

Commit f705bf9

Browse files
committed
Fail when source-file(s) don't exist.
This closes #18.
1 parent 1f012f0 commit f705bf9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

evaluator/evaluator.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,14 @@ func (e *Evaluator) copyFiles(pattern string, destination string, expand bool) b
422422
return false
423423
}
424424

425+
//
426+
// Did we fail to find file(s)?
427+
//
428+
if len(files) < 1 {
429+
fmt.Printf("Failed to find file(s) matching %s\n", pattern)
430+
return false
431+
}
432+
425433
//
426434
// Did we receive more than one file?
427435
//

0 commit comments

Comments
 (0)