Skip to content

Commit

Permalink
fix: throw error when all scores are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhenson committed Jul 14, 2022
1 parent a786e85 commit 9006578
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ const formatInput = input => {
results,
verbose: true
});
} else if (results.runtimeError) {
throw new Error(results.runtimeError);
} else {
throw new Error('All scores were missing from Lighthouse result.');
}
} catch (error) {
core.setFailed(error.message);
Expand Down

0 comments on commit 9006578

Please sign in to comment.