diff --git a/package.json b/package.json index a5acce4..9ad92f1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "private": true, - "version": "2.10.1", + "version": "2.10.2", "name": "PS4RemotePKGSenderV2", "productName": "PS4 Remote PKG Sender V2", "author": "Gkiokan ", diff --git a/src/renderer/pages/Index.vue b/src/renderer/pages/Index.vue index 90c1fc5..002055b 100644 --- a/src/renderer/pages/Index.vue +++ b/src/renderer/pages/Index.vue @@ -277,23 +277,34 @@ export default { // validate install response if( data && data.res ){ // set the state here - this.setStatus(file, "Sent to PS5") + this.setStatus(file, "Sent to PS5") + let code = parseInt(data.res) // success - if( parseInt(data.res) == 0 ) - this.$message({ + if( code == 0 ){ + this.log(file.name + ' install request successfull', file.url) + return this.$message({ dangerouslyUseHTMLString: true, message: `Install Request Success for
${file.name}`, type: "success" }) + } + + if( code == -2135809020 ){ + this.log(file.name + ' file at URL not found', file.url) + return this.$message({ + dangerouslyUseHTMLString: true, + message: `Error ${code} | PKG file response 404. Check Server heartbeat.
${file.name}`, + type: "error" + }) + } // something else, maybe in queue, maybe full storage, maybe whatever - else - this.$message({ - dangerouslyUseHTMLString: true, - message: `Response Code ${data.res} for
${file.name}`, - type: "info" - }) + this.$message({ + dangerouslyUseHTMLString: true, + message: `Response Code ${data.res} for
${file.name}`, + type: "info" + }) } else { this.$message({ message: `Unknown Response. Please check Logs.`, type: "warning" }) diff --git a/src/test/net-server.js b/src/test/net-server.js index 5b56644..0ed4d46 100644 --- a/src/test/net-server.js +++ b/src/test/net-server.js @@ -17,6 +17,7 @@ var server = net.createServer( function(socket){ // dynamic response let response = { res: "0", + // res: "-2135809020", // res: (new Date).getTime() // nope: true, }