Skip to content

Commit c5108c8

Browse files
committed
エラーメッセージ追加
1 parent 0086c15 commit c5108c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Unity/Assets/Baum2/Editor/Scripts/BaumEditorUtil.cs

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public static string GetPath(string fileName)
4242
{
4343
Debug.LogErrorFormat("{0}ファイルがプロジェクト内に複数個存在します。", fileName);
4444
}
45+
if (files.Length == 0)
46+
{
47+
throw new System.ApplicationException(string.Format("{0}ファイルがプロジェクト内に存在しません。", fileName));
48+
}
4549
string path = files[0];
4650
return path.Substring(0, path.Length - fileName.Length);
4751
}

0 commit comments

Comments
 (0)