@@ -11,7 +11,7 @@ defmodule ExMake.Cache do
1111 case File . mkdir_p ( dir ) do
1212 { :error , r } ->
1313 ExMake.Logger . log_debug ( "Failed to create cache directory '#{ dir } ': #{ inspect ( r ) } " )
14- raise ( ExMake.CacheError [ description : "Could not create cache directory '#{ dir } '" ] )
14+ raise ( ExMake.CacheError , [ description: "Could not create cache directory '#{ dir } '" ] )
1515 _ -> :ok
1616 end
1717 end
@@ -93,7 +93,7 @@ defmodule ExMake.Cache do
9393 case :ets . tab2file ( :exmake_env , String . to_char_list! ( path ) ) do
9494 { :error , r } ->
9595 ExMake.Logger . log_debug ( "Failed to save environment cache file '#{ path } ': #{ inspect ( r ) } " )
96- raise ( ExMake.CacheError [ description : "Could not save environment cache file '#{ path } '" ] )
96+ raise ( ExMake.CacheError , [ description: "Could not save environment cache file '#{ path } '" ] )
9797 _ -> :ok
9898 end
9999 end
@@ -120,7 +120,7 @@ defmodule ExMake.Cache do
120120 case :ets . file2tab ( String . to_char_list! ( path ) ) do
121121 { :error , r } ->
122122 ExMake.Logger . log_debug ( "Failed to load environment cache file '#{ path } ': #{ inspect ( r ) } " )
123- raise ( ExMake.CacheError [ description : "Could not load environment cache file '#{ path } '" ] )
123+ raise ( ExMake.CacheError , [ description: "Could not load environment cache file '#{ path } '" ] )
124124 { :ok , tab } -> tab
125125 end
126126 end
@@ -150,7 +150,7 @@ defmodule ExMake.Cache do
150150 case :ets . tab2file ( tab , String . to_char_list! ( path ) ) do
151151 { :error , r } ->
152152 ExMake.Logger . log_debug ( "Failed to save graph cache file '#{ path } ': #{ inspect ( r ) } " )
153- raise ( ExMake.CacheError [ description : "Could not save graph cache file '#{ path } '" ] )
153+ raise ( ExMake.CacheError , [ description: "Could not save graph cache file '#{ path } '" ] )
154154 _ -> :ok
155155 end
156156 end )
@@ -176,7 +176,7 @@ defmodule ExMake.Cache do
176176 case :ets . file2tab ( String . to_char_list! ( path ) ) do
177177 { :error , r } ->
178178 ExMake.Logger . log_debug ( "Failed to load graph cache file '#{ path } ': #{ inspect ( r ) } " )
179- raise ( ExMake.CacheError [ description : "Could not load graph cache file '#{ path } '" ] )
179+ raise ( ExMake.CacheError , [ description: "Could not load graph cache file '#{ path } '" ] )
180180 { :ok , tab } -> tab
181181 end
182182 end )
@@ -205,7 +205,7 @@ defmodule ExMake.Cache do
205205 case File . write ( path , data , [ :append ] ) do
206206 { :error , r } ->
207207 ExMake.Logger . log_debug ( "Failed to save manifest file '#{ path } ': #{ inspect ( r ) } " )
208- raise ( ExMake.CacheError [ description : "Could not save manifest file '#{ path } '" ] )
208+ raise ( ExMake.CacheError , [ description: "Could not save manifest file '#{ path } '" ] )
209209 :ok -> :ok
210210 end
211211 end
@@ -229,7 +229,7 @@ defmodule ExMake.Cache do
229229 case File . write ( path , bin ) do
230230 { :error , r } ->
231231 ExMake.Logger . log_debug ( "Failed to save cached module '#{ path } ': #{ inspect ( r ) } " )
232- raise ( ExMake.CacheError [ description : "Could not save cached module '#{ path } '" ] )
232+ raise ( ExMake.CacheError , [ description: "Could not save cached module '#{ path } '" ] )
233233 :ok -> :ok
234234 end
235235 end )
@@ -249,7 +249,7 @@ defmodule ExMake.Cache do
249249 case :code . load_abs ( String . to_char_list! ( path ) ) do
250250 { :error , r } ->
251251 ExMake.Logger . log_debug ( "Failed to load cached module '#{ beam } ': #{ inspect ( r ) } " )
252- raise ( ExMake.CacheError [ description : "Could not load cached module '#{ beam } '" ] )
252+ raise ( ExMake.CacheError , [ description: "Could not load cached module '#{ beam } '" ] )
253253 _ -> :ok
254254 end
255255 end )
@@ -283,14 +283,14 @@ defmodule ExMake.Cache do
283283 case File . write ( path_arg , args ) do
284284 { :error , r } ->
285285 ExMake.Logger . log_debug ( "Failed to save configuration arguments file '#{ path_arg } ': #{ inspect ( r ) } " )
286- raise ( ExMake.CacheError [ description : "Could not save configuration arguments file '#{ path_arg } '" ] )
286+ raise ( ExMake.CacheError , [ description: "Could not save configuration arguments file '#{ path_arg } '" ] )
287287 :ok -> :ok
288288 end
289289
290290 case File . write ( path_env , vars ) do
291291 { :error , r } ->
292292 ExMake.Logger . log_debug ( "Failed to save configuration variables file '#{ path_env } ': #{ inspect ( r ) } " )
293- raise ( ExMake.CacheError [ description : "Could not save configuration variables file '#{ path_env } '" ] )
293+ raise ( ExMake.CacheError , [ description: "Could not save configuration variables file '#{ path_env } '" ] )
294294 :ok -> :ok
295295 end
296296 end
@@ -312,7 +312,7 @@ defmodule ExMake.Cache do
312312 r = if is_tuple ( r ) && tuple_size ( r ) == 3 , do: :file . format_error ( r ) , else: inspect ( r )
313313
314314 ExMake.Logger . log_debug ( "Failed to load configuration arguments file '#{ path_arg } ': #{ r } " )
315- raise ( ExMake.CacheError [ description : "Could not load configuration arguments file '#{ path_arg } '" ] )
315+ raise ( ExMake.CacheError , [ description: "Could not load configuration arguments file '#{ path_arg } '" ] )
316316 { :ok , args } -> args
317317 end
318318
@@ -321,7 +321,7 @@ defmodule ExMake.Cache do
321321 r = if is_tuple ( r ) && tuple_size ( r ) == 3 , do: :file . format_error ( r ) , else: inspect ( r )
322322
323323 ExMake.Logger . log_debug ( "Failed to load configuration variables file '#{ path_env } ': #{ r } " )
324- raise ( ExMake.CacheError [ description : "Could not load configuration variables file '#{ path_env } '" ] )
324+ raise ( ExMake.CacheError , [ description: "Could not load configuration variables file '#{ path_env } '" ] )
325325 { :ok , vars } -> vars
326326 end
327327
0 commit comments