From 9a5339e7f0be3008ccf5a35e6c939462d6c1d3cb Mon Sep 17 00:00:00 2001 From: "G. Gibson" Date: Fri, 22 Apr 2022 10:33:18 -0700 Subject: [PATCH] Testing 3 --- Services/www/www/gxg-www.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Services/www/www/gxg-www.rb b/Services/www/www/gxg-www.rb index bdca42f..148f773 100644 --- a/Services/www/www/gxg-www.rb +++ b/Services/www/www/gxg-www.rb @@ -1223,11 +1223,17 @@ module GxGwww download_path = handle[:resource].path() GxG::SERVICES[:core][:resources].close(handle[:token]) response = [-255, {"content-type" => "application/hash"}, {:result => {:file => download_path, :vfs_dir => temp_dir}}] + else + raise "Failed to get cache profile." end else response = [500, {"content-type" => "application/json"}, ({:result => false, :error => "Failed to cache file."}).to_json()] end + else + response = [403, {"content-type" => "application/json"}, ({:result => false, :error => "You don't have read access."}).to_json()] end + else + raise "Failed to get profile." end # end