From a9dd92393081df6d46115cae19e1b9771f90352f Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 13 Jul 2016 22:02:19 +0200 Subject: Add site URL to authentication error This might help users if they run their own installation, but forget to set the URL in the client config and then run into this error. Signed-off-by: Florian Pritz --- application/test/tests/test_api_v1.php | 2 +- application/test/tests/test_api_v2.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'application/test/tests') diff --git a/application/test/tests/test_api_v1.php b/application/test/tests/test_api_v1.php index 28b1576d0..9fb782563 100644 --- a/application/test/tests/test_api_v1.php +++ b/application/test/tests/test_api_v1.php @@ -80,7 +80,7 @@ class test_api_v1 extends \test\Test { $this->t->is_deeply(array( 'status' => 'error', 'error_id' => 'api/not-authenticated', - 'message' => 'Not authenticated. FileBin requires you to have an account, please go to the homepage for more information.', + 'message' => 'Not authenticated. FileBin requires you to have an account, please go to the homepage at http://127.0.0.1:23115/ for more information.', ), $ret, "expected error"); } } diff --git a/application/test/tests/test_api_v2.php b/application/test/tests/test_api_v2.php index 96deb382c..f5200ddcc 100644 --- a/application/test/tests/test_api_v2.php +++ b/application/test/tests/test_api_v2.php @@ -80,7 +80,7 @@ class test_api_v2 extends \test\Test { $this->t->is_deeply(array( 'status' => 'error', 'error_id' => 'api/not-authenticated', - 'message' => 'Not authenticated. FileBin requires you to have an account, please go to the homepage for more information.', + 'message' => 'Not authenticated. FileBin requires you to have an account, please go to the homepage at http://127.0.0.1:23115/ for more information.', ), $ret, "expected error"); } } -- cgit v1.2.3-24-g4f1b