cloudron 5.3.0 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/actions.js +3 -3
package/package.json
CHANGED
package/src/actions.js
CHANGED
|
@@ -92,7 +92,7 @@ function createRequest(method, apiPath, options) {
|
|
|
92
92
|
function requestError(response) {
|
|
93
93
|
if (response.statusCode === 401) return 'Invalid token. Use cloudron login again.';
|
|
94
94
|
|
|
95
|
-
return `${response.statusCode} message: ${response.body.message || response.body}`; // body is sometimes just a string like in 401
|
|
95
|
+
return `${response.statusCode} message: ${response.body.message || JSON.stringify(response.body)}`; // body is sometimes just a string like in 401
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
async function selectDomain(location, options) {
|
|
@@ -561,7 +561,7 @@ async function install(localOptions, cmd) {
|
|
|
561
561
|
const result = await getManifest(options.appstoreId || '');
|
|
562
562
|
const { manifest, manifestFilePath } = result;
|
|
563
563
|
|
|
564
|
-
if (!manifest.dockerImage) {
|
|
564
|
+
if (!manifest.dockerImage) { // not a manifest from appstore
|
|
565
565
|
const sourceDir = path.dirname(manifestFilePath);
|
|
566
566
|
const image = options.image || config.getAppConfig(sourceDir).dockerImage;
|
|
567
567
|
|
|
@@ -773,7 +773,7 @@ async function update(localOptions, cmd) {
|
|
|
773
773
|
|
|
774
774
|
let data = {};
|
|
775
775
|
|
|
776
|
-
if (!manifest.dockerImage) {
|
|
776
|
+
if (!manifest.dockerImage) { // not a manifest from appstore
|
|
777
777
|
const sourceDir = path.dirname(manifestFilePath);
|
|
778
778
|
const image = options.image || config.getAppConfig(sourceDir).dockerImage;
|
|
779
779
|
|