Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
revert error messages to use old naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
andygup committed Dec 9, 2022
1 parent 8ea0305 commit 9bb19c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export function loadScript(options: ILoadScriptOptions = {}): Promise<HTMLScript
const src = script.getAttribute('src');
if (src !== url) {
// potentially trying to load a different version of the API
reject(new Error(`The ArcGIS API is already loaded (${src}).`));
reject(new Error(`The ArcGIS API for JavaScript is already loaded (${src}).`));
} else {
if (isLoaded()) {
// the script has already successfully loaded
Expand All @@ -114,7 +114,7 @@ export function loadScript(options: ILoadScriptOptions = {}): Promise<HTMLScript
if (isLoaded()) {
// the API has been loaded by some other means
// potentially trying to load a different version of the API
reject(new Error(`The ArcGIS API is already loaded.`));
reject(new Error(`The ArcGIS API for JavaScript is already loaded.`));
} else {
// this is the first time attempting to load the API
const css = opts.css;
Expand Down

0 comments on commit 9bb19c3

Please sign in to comment.