From ab24efbeda07323f0530519ab24f8ddcb2b59b71 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 25 Nov 2023 11:54:31 -0800 Subject: [PATCH] other: fix error message Signed-off-by: Varun Patil --- lib/Controller/OtherController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/OtherController.php b/lib/Controller/OtherController.php index a93bf224..356af3ce 100644 --- a/lib/Controller/OtherController.php +++ b/lib/Controller/OtherController.php @@ -168,7 +168,7 @@ class OtherController extends GenericApiController case 'service-worker.js': // Disable service worker if server is in debug mode if (!\OC::$server->get(\OCP\IConfig::class)->getSystemValue('memories.sw.enabled', true)) { - throw Exceptions::NotFound('Service worker is disabled in debug mode'); + throw Exceptions::NotFound('Service worker is disabled in global configuration'); } $response = (new StreamResponse(__DIR__.'/../../js/memories-service-worker.js'))->setHeaders([