Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UI] [Error] File not found when loading last file #37

Closed
jcoliz opened this issue Jul 9, 2024 · 0 comments
Closed

[UI] [Error] File not found when loading last file #37

jcoliz opened this issue Jul 9, 2024 · 0 comments

Comments

@jcoliz
Copy link
Owner

jcoliz commented Jul 9, 2024

Given: Loaded an existing TOML
And: Closed app
And: Deleted that TOML
When: Launching the app
Then: Display an error message to user
And: Loads the embedded default slide

Currently: Just does loading spinner forever

Logs:

2024-07-09 13:10:13.525 -07:00 [ERR] LoadDefinitionAsync: Failed
System.IO.FileNotFoundException: Could not find file 'redacted.toml'.
File name: 'redacted.toml'
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.File.OpenRead(String path)
   at LogoSlideMaker.WinUi.ViewModels.MainViewModel.LoadDefinitionAsync(String path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant