Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ describe('StellarStrategy', () => {

expect(
() => new StellarStrategy(mockConfigService, mockUserRepository as any),
).toThrow('STELLAR_SERVER_SECRET environment variable is required');
).toThrow(
'Missing required environment variable: STELLAR_SERVER_SECRET. ' +
'Please define it in your .env file before starting the server.',
);
});

it('should use testnet network by default', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ export class StellarStrategy extends PassportStrategy(

const serverSecret = configService.get<string>('STELLAR_SERVER_SECRET');
if (!serverSecret) {
throw new Error('STELLAR_SERVER_SECRET environment variable is required');
throw new Error(
'Missing required environment variable: STELLAR_SERVER_SECRET. ' +
'Please define it in your .env file before starting the server.',
);
}

this.serverKeypair = StellarSdk.Keypair.fromSecret(serverSecret);
Expand Down
Loading