Skip to content
Snippets Groups Projects
Commit a38c3578 authored by Martin Nilsson's avatar Martin Nilsson
Browse files

Propagate compilation errors from crypto modules.

Rev: lib/modules/Crypto.pmod:1.11
parent 5bfd508c
No related branches found
No related tags found
No related merge requests found
...@@ -8,11 +8,13 @@ private mixed crypto_module; ...@@ -8,11 +8,13 @@ private mixed crypto_module;
static mixed `[](string name) static mixed `[](string name)
{ {
catch { mixed err = catch {
return (crypto_module[name] return (crypto_module[name]
|| ((program) combine_path( __FILE__, "..", "Crypto" , name + ".pike")) || ((program) combine_path( __FILE__, "..", "Crypto" , name + ".pike"))
|| ((object) combine_path( __FILE__, "..","Crypto", name + ".pmod"))); || ((object) combine_path( __FILE__, "..","Crypto", name + ".pmod")));
}; };
if( file_stat("Crypto/"+name) || file_stat("Crypto/"+name+".pmod") )
throw(err);
return UNDEFINED; return UNDEFINED;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment