Add additional explanation for import failures

This commit is contained in:
Cmdr McDonald
2017-02-12 08:31:09 +00:00
parent 45852db507
commit 2620935745
2 changed files with 7 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
* Reload page if Safari throws a security error
* Handle import of ships with incorrectly-sized slots
* Add 'Extreme' blueprint roll: best beneficial and worst detrimental outcome (in place of 'Average' roll)
* Display information about Microsoft browser issues when an import fails
#2.2.14
* Ensure that jitter is shown correctly when the result of a special effect

View File

@@ -39,10 +39,16 @@ export default class ErrorDetails extends React.Component {
</div>;
}
const importerror = ed && ed.scriptUrl && ed.scriptUrl.indexOf('/import') != -1;
return <div className='error'>
<h1>Jameson, we have a problem..</h1>
<h1><small>{error.message}</small></h1>
<br/>
{importerror ? <div>If you are attempting to import a ship from EDDI or EDMC and are seeing a 'Z_BUF_ERROR' it means that the URL has not been provided correctly. This is a common problem when using Microsoft Internet Explorer or Microsoft Edge, and you should use another browser instead.</div> : null }
<br/>
<div>Please note that this site uses Google Analytics to track performance and usage. If you are blocking cookies, for example using Ghostery, please disable blocking for this site and try again.</div>
<br/>
{content}
</div>;
}