Skip to content

Commit

Permalink
Add note about refreshing page in api invoke error
Browse files Browse the repository at this point in the history
<rikaitan.link>ZGQxZjE5NWNkNzIxOTQ4NzMyYWJiYmIyNDI4OTk5MzkzODQ0NDg3ZQo=</rikaitan.link>
  • Loading branch information
Kuuuube authored and tatsumoto-ren committed May 29, 2024
1 parent 5caeb83 commit 1d4e9a2
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 1d4e9a2

Please sign in to comment.