From cf6eac8c5439c87bdafb3105abdd788f890341a4 Mon Sep 17 00:00:00 2001 From: Cristian Cepeda <43882+pastuxso@users.noreply.github.com> Date: Wed, 7 Aug 2024 17:09:15 -0500 Subject: [PATCH] Passing tests --- pkg/project/project.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/project/project.go b/pkg/project/project.go index 5e3013475..6606f6566 100644 --- a/pkg/project/project.go +++ b/pkg/project/project.go @@ -489,6 +489,9 @@ func (p *Project) extractTasksFromFile( func getCodeBlocksFromFile(path string) (document.CodeBlocks, error) { data, err := os.ReadFile(path) if err != nil { + if errors.Is(err, os.ErrPermission) { + return document.CodeBlocks{}, nil + } return nil, err } return getCodeBlocks(data)