# LogImportError(string, Object)

> Logs an error message encountered during import.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.AssetImporters](/engine/6000.6/script-reference/unityeditor/assetimporters.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public void LogImportError(string msg, Object obj = null)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The error message.**** (\[Object]\(/engine/6000.6/script-reference/unityengine/object)): Optional Object that is targeted by the error.

### Remarks

Use this method to notify the user of a critical issue. This method outputs to the console. Traces in the console are linked to the asset.
