Skip to content

Commit

Permalink
correct the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Jun 21, 2019
1 parent d97d694 commit c89a03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run
Expand Up @@ -3,7 +3,7 @@ source .env
dedupe_id=$RANDOM-amonzo-expronzo
pots=$(http "https://api.monzo.com/pots" "Authorization: Bearer $access_token" )
code=$(echo -n $pots | jq -r .code)
if [ "$code" == "unauthorized.auth_required" ]; then
if [ "$code" == "unauthorized.bad_access_token.expired" ]; then
if [ -z "$refresh_token" ]; then
echo 'BAD POPO: $access_token expired and no $refresh_token, gotta get gint'
exit 1
Expand Down

0 comments on commit c89a03c

Please sign in to comment.