Skip to content

Commit c8f41c4

Browse files
author
Jeffrey Lanters
committed
Implemented additional details
1 parent afd1ec2 commit c8f41c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/services/UnityLoaderService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ export default class UnityLoaderService {
3535
.fetch(source)
3636
.then(_response => {
3737
if (_response.status >= 400)
38-
return loggingService.errorUnityLoaderNotFound();
38+
return loggingService.errorUnityLoaderNotFound(_response.status);
3939
_response
4040
.text()
4141
.then(_text => {
4242
if (_text.trim().charAt(0) === "<")
43-
return loggingService.errorUnityLoaderNotFound();
43+
return loggingService.errorUnityLoaderNotFound("error doc");
4444
this.unityLoaderScript = document.createElement("script");
4545
this.unityLoaderScript.type = "text/javascript";
4646
this.unityLoaderScript.async = true;
@@ -52,8 +52,8 @@ export default class UnityLoaderService {
5252
};
5353
this.documentHead.appendChild(this.unityLoaderScript);
5454
})
55-
.catch(_reason => loggingService.errorUnityLoaderNotFound());
55+
.catch(_reason => loggingService.errorUnityLoaderNotFound(_reason));
5656
})
57-
.catch(_reason => loggingService.errorUnityLoaderNotFound());
57+
.catch(_reason => loggingService.errorUnityLoaderNotFound(_reason));
5858
}
5959
}

0 commit comments

Comments
 (0)