Add better debugging on GET reqs since the build failed #35

This commit is contained in:
Nabeel Shahzad
2018-01-10 18:49:42 -06:00
parent bf4e164e0d
commit e80caa6827
2 changed files with 9 additions and 3 deletions

View File

@@ -124,7 +124,13 @@ abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
$headers['x-api-key'] = $user->api_key;
}
return parent::get($uri, $headers);
$req = parent::get($uri, $headers);
if($req->isClientError() || $req->isServerError()) {
Log::error('Error on '.$uri);
Log::error($req->json());
}
return $req;
}
/**