Skip to content

Commit 11752c2

Browse files
authored
remove reference to prescriptionsforpatients (#22)
## Summary - Routine Change ### Details - remove references to prescriptionsforpatients
1 parent ad2df0c commit 11752c2

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"vscjava.vscode-java-pack"
4646
],
4747
"settings": {
48-
"python.defaultInterpreterPath": "/workspaces/prescriptionsforpatients/.venv/bin/python",
48+
"python.defaultInterpreterPath": "/workspaces/eps-FHIR-validator-lambda/.venv/bin/python",
4949
"python.analysis.autoSearchPaths": true,
5050
"python.analysis.extraPaths": [],
5151
"python.testing.unittestEnabled": false,

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ When the token expires, you may need to reauthorise using `make aws-login`
106106
The GitHub Actions require a secret to exist on the repo called "SONAR_TOKEN".
107107
This can be obtained from [SonarCloud](https://sonarcloud.io/)
108108
as described [here](https://docs.sonarsource.com/sonarqube/latest/user-guide/user-account/generating-and-using-tokens/).
109-
You will need the "Execute Analysis" permission for the project (NHSDigital_prescriptionsforpatients) in order for the token to work.
109+
You will need the "Execute Analysis" permission for the project (NHSDigital_eps-FHIR-validator-lambda) in order for the token to work.
110110

111111

112112
### Continuous deployment for testing
@@ -200,6 +200,3 @@ These are used to do common commands
200200
Some pre-commit hooks are installed as part of the install above, to run basic lint checks and ensure you can't accidentally commit invalid changes.
201201
The pre-commit hook uses python package pre-commit and is configured in the file .pre-commit-config.yaml.
202202
A combination of these checks are also run in CI.
203-
204-
205-

src/main/java/software/nhs/FHIRValidator/Utils.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
import java.io.IOException;
55
import java.io.InputStream;
66

7+
import org.apache.logging.log4j.LogManager;
8+
import org.apache.logging.log4j.Logger;
9+
710
public final class Utils {
11+
static Logger log = LogManager.getLogger(Utils.class);
12+
813
public static String getResourceContent(String resource) {
914
ClassLoader loader = Thread.currentThread().getContextClassLoader();
1015
InputStream inputStream = loader.getResourceAsStream(resource);
@@ -17,9 +22,9 @@ public static String getResourceContent(String resource) {
1722
String rawData = result.toString("UTF-8");
1823
return rawData;
1924

20-
} catch (IOException e) {
21-
e.printStackTrace();
22-
return null;
25+
} catch (IOException ex) {
26+
log.error(ex.getMessage(), ex);
27+
throw new RuntimeException("error in getResourceContent", ex);
2328
}
2429
}
2530
}

0 commit comments

Comments
 (0)