Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

Commit

Permalink
correct typo in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jmz-b authored Apr 7, 2020
1 parent fb1b59c commit cac443b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/catalog/somnonetz-pipeline/bin/upload_to_sse
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const args = ['-u', user, '-p', pwd, '-r', `${host}/REST/experiments/${xnatID}/s
const { SSE_URL, SSE_KEY_G, SSE_KENC, TA_URL, SALT_VALUE, IV_VALUE } = process.env;

if (!(SSE_URL && SSE_KEY_G && SSE_KENC && TA_URL && SALT_VALUE && IV_VALUE)) {
throw 'One or more of the following environment variables are on set: ' +
throw 'One or more of the following environment variables are not set: ' +
'SSE_URL, SSE_KEY_G, SSE_KENC, TA_URL, SALT_VALUE, IV_VALUE';
}

Expand All @@ -31,4 +31,4 @@ execFile(XnatDataClient, args, function callback(error, stdout, stderr) {
const data = session.items[0].data_fields;

uploadData(data, data.image_session_ID, SSE_KEY_G, SSE_KENC);
});
});

0 comments on commit cac443b

Please sign in to comment.