Skip to content

Commit

Permalink
Fix build script not exiting properly when given an invalid directory
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNathannator committed Apr 14, 2023
1 parent 4ca5e64 commit 4753c78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/Editor/BuildPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ void Update()
if (!Directory.Exists(outputPath))
{
EditorUtility.DisplayDialog("Invalid Directory", $"{outputPath} is not a valid directory!", "OK");
SetStatus(BuildStatus.Idle);
return;
}

Expand Down

0 comments on commit 4753c78

Please sign in to comment.