Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Commit 4b91706

Browse files
committed
this fixes #263, hopefully
1 parent 218441a commit 4b91706

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

js/assets.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,12 @@ var readRemoteFile = function(path, msg) {
262262

263263
var onRemoteFileLoaded = function() {
264264
// console.log('HTTP Switchboard> readRemoteFile() / onRemoteFileLoaded()');
265-
sendMessage(this.responseText);
265+
// https://github.com/gorhill/httpswitchboard/issues/263
266+
if ( this.status === 200 ) {
267+
sendMessage(this.responseText);
268+
} else {
269+
sendMessage('', 'Error ' + this.statusText);
270+
}
266271
this.onload = this.onerror = null;
267272
};
268273

0 commit comments

Comments
 (0)