more detail in error message

This commit is contained in:
KodeStar 2018-02-08 19:24:30 +00:00
parent 33394c2f07
commit e0d08c60d0

View file

@ -30,7 +30,7 @@ class Nzbget implements Contracts\Applications, Contracts\Livestats {
echo 'Failed: Invalid credentials';
break;
default:
throw new MyException("Invalid response from api...");
echo 'Something went wrong... Code: '.$res->getStatusCode();
break;
}
}