Skip to content

Commit 0733834

Browse files
author
naman-contentstack
committed
updated error logging based on comments
1 parent 364bcf1 commit 0733834

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/base-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export abstract class BaseCommand<T extends typeof Command> extends Command {
127127
];
128128
this.sharedConfig = merge(this.sharedConfig, omit(config, omitKeys));
129129
} catch (error) {
130-
console.error(error);
130+
throw error;
131131
}
132132
}
133133
}

src/util/log.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export default class Logger {
137137
'authtoken":"blt....'
138138
);
139139
} catch (error) {
140-
console.error(error);
140+
throw error;
141141
}
142142

143143
return item;

0 commit comments

Comments
 (0)