Skip to content

Commit

Permalink
fix: Fix error on fcli ssc session login command on older SSC versi…
Browse files Browse the repository at this point in the history
…ons (fixes #584)
  • Loading branch information
rsenden committed Aug 30, 2024
1 parent a21f8eb commit d028052
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private static SSCTokenGetOrCreateResponse getTokenData(UnirestInstance unirest,
result.getData().setToken(token);
return result;
} catch ( UnexpectedHttpResponseException e ) {
if ( e.getStatus()==404 ) {
if ( e.getStatus()==404 || e.getStatus()==401 ) {
// Older SSC versions don't support this endpoint, so we just return null
return null;
} else {
Expand Down

0 comments on commit d028052

Please sign in to comment.