Give a better error message if invalid hawk keys are used

RESOLVED FIXED

Status

RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: cade, Assigned: cade)

Tracking

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
Currently you get "{ status: 'failure', reason: '' }"

It should say { status: 'failure', reason: 'Unauthorized' }
(Assignee)

Comment 1

5 years ago
Created attachment 8371696 [details] [review]
https://github.com/mozilla/MakeAPI/pull/194

simple fix, just use "Unauthorized" as the error message if hawk passes back an err.
Attachment #8371696 - Flags: review?(jon)

Updated

5 years ago
Attachment #8371696 - Flags: review?(jon) → review+
(Assignee)

Comment 2

5 years ago
merged: https://github.com/mozilla/MakeAPI/commit/7c25db235e09b0f631b9303f6ee8b677665ae874
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.