From 9e946e02a87b5880e4977f7804f5498e46fe92f4 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 17 Oct 2015 09:39:16 -0400 Subject: Do not error when trying to snapopen a non-existent project; core/file_io.lua --- core/file_io.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/core/file_io.lua b/core/file_io.lua index 14637891..e4e08d07 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -428,6 +428,7 @@ io.snapopen_filters = {} -- @name snapopen function io.snapopen(paths, filter, exclude_FILTER, opts) if not paths then paths = io.get_project_root() end + if not paths then return end if type(paths) == 'string' then if not filter then filter = io.snapopen_filters[paths] -- cgit v1.2.3