Updated error resonse to be less generic on encode failure. Corrected error in...

Updated error resonse to be less generic on encode failure. Corrected error in loop to prevent throwing unnecessary errors.
2 jobs from issue#3860b in 0 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Testing
failed #2350
phpunit

00:00:00

 
  Security
skipped #2351
allowed to fail
sast
 
Name Stage Failure
failed
phpunit Testing
Checking out 9b2b8d3c as issue#3860b...
Skipping Git submodules setup
$ apt-get update -yqq
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
ERROR: Job failed: exit status 1