Skip to content

Commit

Permalink
don't select twice
Browse files Browse the repository at this point in the history
  • Loading branch information
sandorfr committed Jul 29, 2018
1 parent e64f531 commit 5a84d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tasks/GhostThemeUploader/ghostThemeUploaderTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function themeUpload() {
catch (err) {
var mainError = await page.$('p.main-error');
if (mainError != null) {
var message = await page.evaluate(document => document.querySelector('p.main-error').innerText) as string;
var message = await page.evaluate(el => el.innerText, mainError) as string;
throw new Error(message);
} else {
throw err;
Expand Down

0 comments on commit 5a84d03

Please sign in to comment.