Skip to content

Commit

Permalink
chore: import EOL from os
Browse files Browse the repository at this point in the history
  • Loading branch information
0.618 committed May 14, 2024
1 parent 7682b62 commit bcb27aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/amplify-cli/src/amplify-exception-handler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { EOL } from 'os';
import {
$TSAny,
AmplifyException,
Expand Down Expand Up @@ -124,7 +125,7 @@ const executeSafely = async (functionToExecute: () => Promise<void> | void, erro
const printAmplifyException = (amplifyException: AmplifyException): void => {
const { message, details, resolution, link, stack } = amplifyException;
if (details) {
printer.error(message + os.EOL + details);
printer.error(message + EOL + details);
} else {
printer.error(message);
}
Expand Down

0 comments on commit bcb27aa

Please sign in to comment.