envdir
envdir copied to clipboard
Nondescript error when having non-envdir style files in the env directory
I was standing in my envdir when my psql session decided to do a coredump, creating a .core file in the envdir. This later resulted in the rather nondescript error An error occurred: [Errno 7] Argument list too long
, as I had failed to remove the .core-file.
I could look into this and submit a patch if you think it makes sense / is possible to handle this type of error in a sensible way?
Maybe we can raise a better error that output the faulty filename in order to spot the file more easily. @ptrf please can you provide a traceback ?
There appears to be no traceback.
Using a 100mb full of NUL I get this error:
envdir envdir/ ls
Unable to run command ls: [Errno 7] Argument list too long
There should be a limit about how much is being read from a file probably.