Skip to content
8 changes: 6 additions & 2 deletions packages/amplify-cli/src/amplify-exception-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,12 @@ const executeSafely = async (functionToExecute: () => Promise<void> | void, erro

const printAmplifyException = (amplifyException: AmplifyException): void => {
const { message, details, resolution, link, stack } = amplifyException;

printer.error(message);
if (message === 'Resource is not in the state stackUpdateComplete') {
// This change is to help Studio log more details to save another round of log analysis.
printer.error(message + details);
} else {
printer.error(message);
}
if (details) {
printer.info(details);
}
Expand Down