Skip to content

Commit

Permalink
add check for 403 (#1614)
Browse files Browse the repository at this point in the history
* add check for 403

* fix error

* fix msg
  • Loading branch information
tinaliang committed Aug 28, 2019
2 parents 3e4a99a + 6f67ec8 commit 61a459c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/extensions/generateInstanceId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export async function generateInstanceId(projectId: string, modName: string): Pr
if (_.get(instanceRes, "error.code") === 404) {
return modName;
}
throw new FirebaseError("Unexpected error when generating instance ID:", {
const msg =
"Unexpected error when generating instance ID: " + _.get(instanceRes, "error.message");
throw new FirebaseError(msg, {
original: instanceRes.error,
});
}
Expand Down

0 comments on commit 61a459c

Please sign in to comment.