mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-1571: Properly wrap upload stream JSON errors.
This commit is contained in:
@@ -323,7 +323,7 @@ angular.module('rest').factory('tunnelService', ['$injector',
|
||||
|
||||
// Parse and reject with resulting JSON error
|
||||
else if (xhr.getResponseHeader('Content-Type') === 'application/json')
|
||||
deferred.reject(angular.fromJson(xhr.responseText));
|
||||
deferred.reject(new Error(angular.fromJson(xhr.responseText)));
|
||||
|
||||
// Warn of lack of permission of a proxy rejects the upload
|
||||
else if (xhr.status >= 400 && xhr.status < 500)
|
||||
|
Reference in New Issue
Block a user