From: Dave Peticolas <[email protected]>
As implied by its use in sin_util:copy_file/3.
---
server/sinan/src/sin_sig.erl | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/server/sinan/src/sin_sig.erl b/server/sinan/src/sin_sig.erl
index 4626129..ae55d04 100644
--- a/server/sinan/src/sin_sig.erl
+++ b/server/sinan/src/sin_sig.erl
@@ -87,6 +87,10 @@ changed(NS, BuildDir, File) ->
%%--------------------------------------------------------------------
target_changed(StartFile, TargetFile) ->
case {file:read_file_info(TargetFile), file:read_file_info(StartFile)} of
+ {_, {error, enoent}} ->
+ file_not_found;
+ {_, {error, eacces}} ->
+ unable_to_access;
{{ok, TargetInfo}, {ok, FileInfo}} when TargetInfo#file_info.mtime <
FileInfo#file_info.mtime ->
true;
--
1.5.6.5
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"erlware-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/erlware-dev?hl=en
-~----------~----~----~----~------~----~------~--~---