Skip to content

Commit

Permalink
some chang in the loading file
Browse files Browse the repository at this point in the history
  • Loading branch information
keyroll-99 committed Jun 6, 2024
1 parent f46bd46 commit d67c5ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion ide/src/Fiona.IDE.ProjectManager/Models/ProjectFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ internal static async Task<ProjectFile> Create(string path)

private async Task SaveContentAsync(string content)
{
await File.WriteAllTextAsync(Path, content);
await using StreamWriter writer = new(Path);
await writer.WriteAsync(content);
writer.Close();
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,7 @@
}
catch (Exception ex)
{
#if DEBUG
_exceptionMessage = ex.Message;
#else
_exceptionMessage = "An error occurred while loading the project";
#endif
}
}

Expand Down

0 comments on commit d67c5ac

Please sign in to comment.