Permalink
Browse files

ScriptCompiler.CompileScripts no longer throws DirectoryNotFoundExcep…

…tion, logs instead.
  • Loading branch information...
1 parent 9cf4f38 commit 4fa11df61a3fff0d076694847bf39b3e79668782 Filip Lundgren committed Mar 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 CryBrary/ScriptCompiler.cs
View
2 CryBrary/ScriptCompiler.cs
@@ -342,7 +342,7 @@ public static void CompileScripts(ref CompilationParameters compilationParameter
if (Directory.Exists(directory))
scripts.AddRange(Directory.GetFiles(directory, "*.cs", SearchOption.AllDirectories));
else
- throw new DirectoryNotFoundException(message: string.Format("Could not compile scripts in {0}; directory not found", directory));
+ Debug.LogAlways("Skipping compilation of scripts in {0}; directory not found", directory);
}
if(scripts.Count <= 0)

0 comments on commit 4fa11df

Please sign in to comment.