Skip to content

Commit

Permalink
Add note about refreshing page in api invoke error (#1004)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube authored May 28, 2024
1 parent 8396637 commit dd1f195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/js/comm/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ export class API {
resolve(/** @type {import('api').ApiReturn<TAction>} */ (result));
}
} else {
const message = response === null ? 'Unexpected null response' : `Unexpected response of type ${typeof response}`;
const message = response === null ? 'Unexpected null response. You may need to refresh the page.' : `Unexpected response of type ${typeof response}. You may need to refresh the page.`;
reject(new Error(`${message} (${JSON.stringify(data)})`));
}
});
Expand Down

0 comments on commit dd1f195

Please sign in to comment.