Skip to content

Commit 8b421e6

Browse files
author
Jeffrey Bostoen
committed
Improve error message: Include hints on what to validate.
1 parent 941c822 commit 8b421e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/restclient.class.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public static function GetNewestKnownVersion() {
150150
}
151151
}
152152

153-
throw new Exception("No supported iTop API version found (tried: ".implode(', ', $aKnownVersions).")");
153+
throw new Exception("Unable to detect an iTop API. Validate the URL and the credentials, and check if appropriate profiles have been assigned to the user (e.g. 'REST Services User').");
154154

155155
}
156156

0 commit comments

Comments
 (0)