diff --git a/laerror.cc b/laerror.cc index 7b6186c..1fe3fc7 100644 --- a/laerror.cc +++ b/laerror.cc @@ -39,6 +39,8 @@ namespace LA { +bool LA_error_list_files=false; + //enforce GPU initialization by a global class instantization constructor #ifdef CUDALA GPU_START gpu_start_instant; @@ -140,7 +142,8 @@ if(f) std::cerr.flush(); } -int r=system("echo INFO:; whoami; hostname; pwd; ls -l -t .;"); +int r=system("echo INFO:; whoami; hostname; pwd;"); +if(LA_error_list_files) r=system("ls -l -t .;"); throw LAerror(s1); } diff --git a/laerror.h b/laerror.h index 63d150c..b64c0fe 100644 --- a/laerror.h +++ b/laerror.h @@ -55,6 +55,8 @@ return s; extern int endianity(); +extern bool LA_error_list_files; + }//namespace #endif