diff --git a/src/files.jl b/src/files.jl index 100d81d8ff00940cd436e091bf046ce385a688b3..a9f9a120dc725c2462f772e85b89e2015e49ddc8 100644 --- a/src/files.jl +++ b/src/files.jl @@ -104,9 +104,15 @@ function tryopenfile(controller, path; reload::Bool=false) turn_load_animation_on(controller) end # + if !isfile(path) + @error "Cannot find file" file=path + hub[:input][] = nothing + return + end records = loadfile(path) if isempty(records) @info "Cannot load file" file=path + hub[:input][] = nothing return elseif haskey(hub, :input) hub[:input][] = path