From 6c48f8b7a9c7f303ec31b8959b18fa0d344ff44f Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Wed, 20 Oct 2021 12:27:58 -0700 Subject: [PATCH] pipeline: more explicit non-executable errors Signed-off-by: Andrea Luzzardi --- environment/pipeline.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment/pipeline.go b/environment/pipeline.go index e2801b0e..3737e43c 100644 --- a/environment/pipeline.go +++ b/environment/pipeline.go @@ -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 }