pipeline: more explicit non-executable errors

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-10-20 12:27:58 -07:00
parent d763976ea9
commit 6c48f8b7a9

View File

@ -113,7 +113,7 @@ func ops(code *compiler.Value) ([]*compiler.Value, error) {
if err != nil {
panic(err)
}
return nil, fmt.Errorf("not executable: %s", source)
return nil, fmt.Errorf("not executable: %s (%s)", source, code.Path().String())
}
return ops, nil
}