Skip to content

Commit a8a97f3

Browse files
author
Asaf Cohen
committed
fix CI compiler cannot deal with multiline strings
1 parent 983db70 commit a8a97f3

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

src/main/java/io/permit/sdk/api/BaseApi.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -146,23 +146,23 @@ protected void ensureContext(ApiKeyLevel callLevel) throws PermitContextError, I
146146

147147
// verify context matches requested call level
148148
if (callLevel == ApiKeyLevel.PROJECT_LEVEL_API_KEY && this.config.getContext().getProject() == null) {
149-
throw new PermitContextError("""
150-
You're trying to use an SDK method that's specific to a project,
151-
but you haven't set the current project in your client's context yet,
152-
or you are using an organization level API key.
153-
Please set the context to a specific
154-
project using `permit.set_context()` method.
155-
""");
149+
throw new PermitContextError(
150+
"You're trying to use an SDK method that's specific to a project," +
151+
"but you haven't set the current project in your client's context yet," +
152+
"or you are using an organization level API key." +
153+
"Please set the context to a specific" +
154+
"project using `permit.set_context()` method."
155+
);
156156
}
157157

158158
if (callLevel == ApiKeyLevel.ENVIRONMENT_LEVEL_API_KEY && this.config.getContext().getEnvironment() == null) {
159-
throw new PermitContextError("""
160-
You're trying to use an SDK method that's specific to an environment,
161-
but you haven't set the current environment in your client's context yet,
162-
or you are using an organization/project level API key.
163-
Please set the context to a specific
164-
environment using `permit.set_context()` method.
165-
""");
159+
throw new PermitContextError(
160+
"You're trying to use an SDK method that's specific to an environment," +
161+
"but you haven't set the current environment in your client's context yet," +
162+
"or you are using an organization/project level API key." +
163+
"Please set the context to a specific" +
164+
"environment using `permit.set_context()` method."
165+
);
166166
}
167167
}
168168
}

0 commit comments

Comments
 (0)