Skip to content

Commit

Permalink
fix handling of ctrl-c interrupt after test work broke it
Browse files Browse the repository at this point in the history
  • Loading branch information
rlindner81 committed Dec 6, 2024
1 parent 92ef8bf commit c2f87ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/submodules/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ const _setup = async (location) => {
}
}
} catch (err) {
fail("caught error during question:", err.message);
// NOTE: if a ctrl-c interrupt is signaled, question() throws an undefined
if (err) {
fail("caught error during question:", err.message);
} else {
fail();
}
}
return _writeRuntimeConfig(newRuntimeConfig, filepath);
};
Expand Down

0 comments on commit c2f87ff

Please sign in to comment.